- Source:
Classes
Type Definitions
-
CheckboxModalOptions
-
- Source:
Properties:
Name Type Argument Default Description templateModalString <optional>
The template for the modal
templateTableModalString <optional>
The template for the table.
tablesArray.<CheckboxModalTable> The configuration for the tables
parametersobject <optional>
[] Additional parameters passed to templateModal
okCallbackfunction <optional>
$.noop Callback called when the OK button is pressed
okIconstring <optional>
'icon-refresh' Icon for the OK button
okClassstring <optional>
'btn-success' Class for the OK button
cancelClassstring <optional>
'' Class for the cancel button
atLeastOneElementSelectedboolean <optional>
false Set this to true if a checkbox
i18nobject Object containing i18n strings
ventmodule:js-whatever/js/vent-constructor.Vent Instance of Vent used to track resize events
checkboxOrRadiostring <optional>
checkbox Should be set to 'checkbox' or 'radio' according to the inputs
used in your template -
CheckboxModalTable
-
- Source:
Properties:
Name Type Argument Description initialStateboolean | Array.<string> The initial state of the checkboxes. Can be either a boolean, or a list of
row names which should start checkedtableHeaderstring The i18n key for the table header.
inputNamestring <optional>
The name of the radio input. Only used if checkboxOrRadio is set to radio
rowsArray.<string> The names of the rows. These must be unique
-
CheckboxModalTemplateParameters
-
- Source:
Properties:
Name Type Description tableConfigsArray.<TableConfig> The configuration for the tables
tableTemplatefunction The template for the table
i18nobject i18n strings
okIconstring The icon for the OK butto
okClassstring The class for the OK button
cancelClassstring The class for the cancel button
-
TableConfig
-
- Source:
Properties:
Name Type Description inputNamestring The name of the input if using radio buttons
i18nobject strings
i18nTableHeaderstring A key in i18n which will be used as the table header
rowsobject A map from row names to booleans representing the checkbox state