Button

The Button component is an extension to standard input element for user interactions with icons and theming. The pButton directive makes a plain HTML button a PrimeNG-enhanced button. A basic example of the Button component with defined label text would be written as follows:

<button name="basic" pButton type="button" label="ClickMe"></button>

The type of the Button should be button type. The following screenshot shows a snapshot result of the basic Button example:

The Button component supports one event callback named click, which will be invoked on click of the Button element. Remember that Button's click event is basically from Angular one not specific to PrimeNG.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.252.204