InputSwitch Component
The InputSwitch Component is used to take a boolean input from the user. It has two states, on and off. It can be turned on initially by binding its value with a boolean variable set to true. There is only one event associated with the InputSwitch component which is given below.
Components |
Description |
---|---|
InputSwitch Basic Component | The InputSwitch component allows a user to switch between the two values ie, selecting either of them by toggling it. |
Model Driven Forms Component | The Model Driven Forms can be used with Form Component for selecting boolean values we use inputswitch |
Properties Component | The InputSwitch Component is used to select a boolean value. |
Events Component | The InputSwitch Component is used to take a boolean input from the user. It has two states, on and off. It can be turned on initially by binding its value with a boolean variable set to true. There is only one event associated with the InputSwitch component which is given below. |
Styling Component | The Form InputSwitch is used to take input of a boolean value from the users. It can be bonded to a boolean variable using the ngModel directive provided by Angular itself. If the bonded variable is set to true, the InputSwitch will be enabled by default. |
Angular PrimeNG Form Complete Reference
Angular PrimeNG Form facilitates the various input components for taking the input field & validating, which helps to design a responsive form for a single-page-application, that enhances the user experience, along with increasing the user interactivity in the Web application.
There are various components that are provided by the Angular PrimeNG Form, which are listed below with their brief description.
Contact Us