egroupware_official/api/js/etemplate/Et2Switch/Et2SwitchIcon.md

531 B

<et2-switch-icon></et2-switch-icon>

:::tip

There are multiple components for dealing with boolean yes / no.

  • Et2SwitchIcon: This one
  • ButtonToggle: A button that shows an icon
  • Checkbox: Classic checkbox
  • Switch: Switch to turn something on or off

:::

Examples

Custom icons

Use the onIcon and offIcon properties to customise what is displayed

<et2-switch-icon onIcon="plus" offIcon="minus"></et2-switch-icon>