Skip to content

classes_lib_controls_form_checkbox.class

Daniel Spors edited this page Dec 19, 2023 · 3 revisions

Classes in file lib/controls/form/checkbox.class.php

class CheckBox

Represents a checkbox.

Extends: Input » Control » Renderable

setAutoSubmit

Enables form auto-submission on value change. This is done by submitting $(this).closest('form')

Definition: public function setAutoSubmit($on=true)

Returns: static

Parameters:

  • bool $on if true, activates, else stops

setChecked

Sets if checked or not.

Definition: public function setChecked($on)

Returns: static

Parameters:

  • bool $on true for checked, false for unchecked

__construct

Definition: public function __construct($name=false)

Returns: NOT DOCUMENTED

Parameters:

  • string $name The name
Clone this wiki locally