2
0
mirror of https://github.com/gchq/CyberChef synced 2025-12-26 21:23:17 +00:00

Updated Adding a new operation (markdown)

n1474335
2017-01-31 18:46:14 +00:00
parent c3d5c44989
commit b16eca099f

@@ -117,7 +117,7 @@ Operation arguments (ingredients) can be set to any of the following types:
- 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.
9. `toggleString`
- User is presented with a string input box with a toggleable dropdown attached.
- Populate the dropdown using the `toggle_values` property.
- Populate the dropdown using the `toggleValues` property.
- Operation receives an object with two properties: `option` containing the user's dropdown selection, and `string` containing the input box contents.
- Particularly useful for arguments that can be specified in various different formats.
- See the *XOR* configuration in `src/js/config/OperationConfig.js` for an example of how this works.