Toggle Button Methods
Use the toggle button methods to manipulate toggle buttons. A toggle button is a two-state button indicating whether the button is pressed or not pressed (for example, on or off). Pressed (or on) means that the functionality implemented by the button is enabled. Not pressed (or off) means that the functionality implemented by the button is not enabled (or the default functionality is applied). For example, a Filter toggle button on a grid would be unpressed (off) when no user filter has been applied to a grid. Conversely, the Filter toggle button would be pressed (or on) if one or more filters have been applied to the grid, which change the data that is displayed. The “pressed” indicator of the toggle button tells the user that a filter has been applied to the displayed grid data.