Datamanager 2 simple checkbox

As with all subclasses, the actual initialization is done in the initialize() function, not in the constructor, to allow for error handling.

This widget supports the boolean type only.

Available configuration options:

  • boolean show_title: This flag controls whether the title field is shown or not. If this is flag, the whole title processing will be disabled. This flag is true by default.
  • array jsevents: Array of event=>action pairs to control client side behavior. Ex.:
  'onclick' => 'do_something(param1)',
  

will add "onclick='do_something(param1)'" attribute to tag. - string description Extra description of a QF element placed next to element.

package midcom.helper.datamanager2

 Methods

_on_initialize ()

The initialization event handler validates the base type.

Returns

booleanIndicating Success

add_elements_to_form ($attributes)

Adds a simple checkbox form element.

Parameters

$attributes

get_default ()

sync_type_with_widget ($results)

Parameters

$results

 Properties

 

array $description

Additional text added to QF element
 

array $jsevents

JS actions bound to widget
 

array $show_title

Whether to show field title or not.