Toggle Button
Properties of Toggle Button
- Id - unique identifier of the control
- GridData(LMS) - control's column values for Large, Medium and Small screens. Please refer to GridData for further details
- Label - text to be displayed in the button
- Icon - icon to be used by the button
- Bound Pressed - assign a boolean field to this property. This can be used to determine if the button is pressed or released
- Actions if pressed - a place to inject a custom code or action in the event that the button has been pressed. A common application of this is calling a Javascript Function or navigating to a particular page.
- Type - sets the type of button defined in SAPUI5 ButtonType
- Width - width setting
- Enabled - set a boolean value or a variable with type boolean from the Model to control the enable property
- Visible - set a boolean value or a variable with type boolean from the Model to control the visibility property
- ToolTip - text to be displayed when hovered to the button
- Style Class - assign a predefined SAPUI5 CSS or a CSS class defined in the CSS of the App
Advanced - properties of the control not available in the above list can be added here.
Setting Additional Properties provides further information about the Advanced property
Step-by-step guide
How to add a Toggle Button
- Right click on a Form Element and select Add Toggle Button
- A Toggle Button control has been added
Related articles