new OptionsWaiter(app)
Waiter to handle events related to the CyberChef options.
Parameters:
Name | Type | Description |
---|---|---|
app |
HTMLApp | The main view object for CyberChef. |
- Copyright:
-
- Crown Copyright 2016
- License:
-
- Apache-2.0
- Source:
Methods
-
load(options)
-
Loads options and sets values of switches and inputs to match them.
Parameters:
Name Type Description options
Object - Source:
-
options_click()
-
Handler for options click events.
Dispays the options pane.- Source:
-
reset_options_click()
-
Handler for reset options click events.
Resets options back to their default values.- Source:
-
switch_change(e, state)
-
Handler for switch change events.
Modifies the option state and saves it to local storage.Parameters:
Name Type Description e
event state
boolean - Source:
-
number_change(e)
-
Handler for number change events.
Modifies the option value and saves it to local storage.Parameters:
Name Type Description e
event - Source:
-
select_change(e)
-
Handler for select change events.
Modifies the option value and saves it to local storage.Parameters:
Name Type Description e
event - Source:
-
set_word_wrap()
-
Sets or unsets word wrap on the input and output depending on the word_wrap option value.
- Source: