0 votes
in Onsen UI by
Button Component in onsen ui

1 Answer

0 votes
by
This component will render a button on the screen

The styling will be selected based on the platform (iOS / Android / Chrome etc) automatically.

Button components have to be embedded inside the <page> component only and cannot be used in toolbar component.

Incase the requirement is to add a button such as back, menu in toolbar, there are specific components available in Onsen as per the required functionality.

Button components can be customized and event handlers can be added to them using corresponding props. (i.e. onClick, style etc.)

Example:

<Ons.Button style={{margin: '10px'}} onClick={this.handleClick}>Click Me</Ons.Button>

Related questions

0 votes
asked Feb 7, 2020 in Onsen UI by DavidAnderson
0 votes
asked Feb 7, 2020 in Onsen UI by DavidAnderson
...