mirror of https://github.com/apache/cloudstack.git
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']
}
}
```
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
|
||
|---|---|---|
| .. | ||
| api | ||
| assets | ||
| components | ||
| config | ||
| core | ||
| layouts | ||
| locales | ||
| router | ||
| store | ||
| style | ||
| utils | ||
| views | ||
| App.vue | ||
| main.js | ||
| permission.js | ||