Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

InputSwitch composite component is used to display an input element on the page that allows user to select a boolean value.

...

NameRequiredTypeDefaultDescription

columnClasses

falseStringui-grid-col-12

Comma separated list of column style classes of the gird layout that will be used to display the component.

 

columnsfalseInteger1

Number of columns of the gird layout that will be used to display the component.

 

disabledfalseBooleanfalseFlag indicating that component is disabled or not.
labelKeyfalseStringnull

A valid key defined in translation properties file. Its translation through the glossary will be used as the presentable name of the component.

managedBeanfalseStringnull

The name of the managed bean that will be used for retrieving the component values.

onChangeFunctionfalseString null 

The name of the client side callback to execute Defines the function call triggered when input element loses focus and its value has been modified since gaining focus.

parametersfalseObject null The parameter Defines the parameter of the client side callbackfunction call.
processfalseString @this and the value of the refresh attributeComponent(s) to process in partial request.
readonlyfalseBoolean falseFlag indicating that this component will prevent changes by the user.
refreshfalseString@thisComponent(s) to update with ajax.
tipfalseStringnull

A valid key defined in translation properties file. Its translation through the glossary will be used as an advisory tooltip information.

valuefalseObjectnullThe value of the component.
visiblefalseBooleantrue

Controls the visibility of the component.


Examples

 JSF Page

 

 

 

 

 

 

Managed Bean