Class mct_checkbox

MCT Checkbox Wrapped Type.

Functions

wrapped_type:new (option_obj) Create a new wrapped type within an mct_option.
wrapped_type:check_validity (value) Checks the validity of the value passed.
wrapped_type:set_default () Sets a default value for this mct_option.
wrapped_type:ui_select_value (val) Selects a value in UI for this mct_option.
wrapped_type:ui_change_state (val) Changes the state for the mct_option in UI, ie.
wrapped_type:ui_create_option (dummy_parent) Creates the mct_option in the UI.


Functions

Methods
wrapped_type:new (option_obj)
Create a new wrapped type within an mct_option.

Parameters:

  • option_obj mct_option The mctoption this wrappedtype is being passed.
wrapped_type:check_validity (value)
Checks the validity of the value passed.

Parameters:

  • value any Tested value.

Returns:

  1. boolean valid Returns true if the value passed is valid, false otherwise.
  2. boolean valid_return If the value passed isn't valid, a second return is sent, for a valid value to replace the tested one with.
wrapped_type:set_default ()
Sets a default value for this mct_option. Defaults to "false" for checkboxes.
wrapped_type:ui_select_value (val)
Selects a value in UI for this mct_option.

Parameters:

  • val
wrapped_type:ui_change_state (val)
Changes the state for the mct_option in UI, ie. locked/unlocked.

Parameters:

  • val
wrapped_type:ui_create_option (dummy_parent)
Creates the mct_option in the UI. Do not call externally.

Parameters:

  • dummy_parent
generated by LDoc 1.4.6 Last updated 2021-01-03 11:23:43