button.create
button.create(text, ...platforms)
Creates a new button
Sub-functions:
.action() - Set click handler
.primary()/.secondary()/.danger() - Set button style
.to(pageName) - Set navigation target
const btn = button.create('Click me', 'telegram')
.action(() => console.log('Clicked!'))
.primary();Last updated
Was this helpful?
