Updated Adding a new operation (markdown)

n1474335 2018-12-26 16:54:21 +00:00
parent 455d71b630
commit 10efa070e7

@ -54,7 +54,7 @@ Operation arguments (ingredients) can be set to any of the following types:
7. `populateOption` 7. `populateOption`
- Given an array of `{name: "", value: ""}` objects, the user is presented with a dropdown selection box with the names as options. The corresponding value will be assigned to whichever argument index the `target` parameter is set to. - Given an array of `{name: "", value: ""}` objects, the user is presented with a dropdown selection box with the names as options. The corresponding value will be assigned to whichever argument index the `target` parameter is set to.
- See the *Regular expression* configuration in `src/core/config/OperationConfig.js` for an example of how this works. - See the *Regular expression* configuration in `src/core/config/OperationConfig.js` for an example of how this works.
8. `editableOption` 8. `editableOption` or `editableOptionShort`
- Given an array of `{name: "", value: ""}` objects, the user is presented with an editable dropdown menu. The items in the dropdown are labelled with `name` and set the argument to `value` when selected. - Given an array of `{name: "", value: ""}` objects, the user is presented with an editable dropdown menu. The items in the dropdown are labelled with `name` and set the argument to `value` when selected.
- You can use the `defaultIndex` property to define which index should be selected by default, if required. - You can use the `defaultIndex` property to define which index should be selected by default, if required.
9. `toggleString` 9. `toggleString`