UIButtonList
Creates a List with Buttons that accept any kind of text button types.
Since: 7.0.0
Example
import {UIButtonList} from 'writer'
render($$) {
const el = $$('div')
return el.append(
$$(UIButtonList, {
listValues: [
{
label: 'A',
value: 'a',
tooltipText: 'Button A'
},
{
label: 'B',
value: 'b',
tooltipText: 'Button B'
},
{
label: 'C',
value: 'c',
tooltipText: 'Button C'
}
],
onClick: () => {
// Do something
}
})
)
}
Example
import {UIButtonList} from 'writer'
render($$) {
const el = $$('div')
return el.append(
$$(UIButtonList, {
listValues: values,
size: 'tiny',
type: 'text',
width: 'full'
})
.on('click', () => {
// Do something (substance event callback style)
})
)
}
Last updated