Zebra API Doc

zebra.ui.Group Class

Radio group switch manager implementation. This is an extension of "zebra.ui.SwicthManager" to support radio group switching behavior. You can use it event with normal checkbox:

  // create group of check boxes that will work as a radio group
  var gr = new zebra.ui.Group();
  var ch1 = new zebra.ui.Checkbox("Test 1", gr);
  var ch2 = new zebra.ui.Checkbox("Test 2", gr);
  var ch3 = new zebra.ui.Checkbox("Test 3", gr);

Constructor

zebra.ui.Group

()

Methods

getValue

(
  • o
)
Boolean

Inherited from zebra.ui.SwitchManager:

Get current state of the given UI component

Parameters:


Return: Boolean

a boolean state

install

(
  • o
)
protected

Inherited from zebra.ui.SwitchManager:

Call when the manager has been installed for the given UI component

Parameters:

setValue

(
  • o
  • b
)

Inherited from zebra.ui.SwitchManager:

Set the state for the given UI component

Parameters:

stateUpdated

(
  • o
  • b
)

Inherited from zebra.ui.SwitchManager:

Called every time a state has been updated.

Parameters:

  • o zebra.ui.Checkbox

    an ui component for which the state has been updated

  • b Boolean

    a new boolean state of the UI component

uninstall

(
  • o
)
protected

Inherited from zebra.ui.SwitchManager:

Call when the manager has been uninstalled for the given UI component

Parameters:

Events

stateUpdated

Inherited from zebra.ui.SwitchManager:

Fired when a state has been updated

   var ch = new zebra.ui.Checkbox("Test");
   ch.manager.bind(function (src, ui) {
       ...
   });

Event Parameters: