July 2017
Intermediate to advanced
384 pages
8h 23m
English
ToggleButton provides a way to select a Boolean value using a button. The ngModel directive is used to define a two-way data binding to a Boolean property. That is, preselection of the toggle button is achieved by enabling the Boolean property. A basic example of ToggleButton usage would be as follows:
<p-toggleButton [(ngModel)]="basic" name="basic"></p-toggleButton>
The following screenshot shows a snapshot result of the basic example:

The ToggleButton also provided customized options such as onLabel, offLabel, onIcon, and offIcon over default labels and icons. The label components associated ...
Read now
Unlock full access