You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by GitBox <gi...@apache.org> on 2019/11/25 01:21:49 UTC
[GitHub] [cloudstack-primate] rhtyd commented on issue #29: Implement
autogenerated actions forms with key-remapping
rhtyd commented on issue #29: Implement autogenerated actions forms with key-remapping
URL: https://github.com/apache/cloudstack-primate/issues/29#issuecomment-557952280
Fixed in e82f401d83a6d37c44d4310b35e4ec2b6d6e8278
config: action args remapping framework
This implements actions args remapping framework which allows developers
to specify how to provide/show args to the user/admin or how to override
based on the resource by means of (a) `value(record)` function, (b)
statically defined `api` name, (c) `options` array.
For example, in the config file:
```
args: ['id', 'virtualmachineid', 'mode'],
mapping: {
id: {
api: 'listIsos'
},
virtualmachineid: {
value: (record, params) => { return record.id }
},
mode: {
options: ['http', 'nfs', 'something else']
}
}
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services