button()
button(
content,handler,tooltip?):HTMLButtonElement
Defined in: js-api/ui.ts:467
Creates a button with the specified text, click handler, and tooltip. Example: https://public.datagrok.ai/js/samples/ui/components/buttons
Parameters
| Parameter | Type | Default value |
|---|---|---|
content | string | Element | (string | Element)[] | undefined |
handler | Callback | undefined |
tooltip | string | null | null |
Returns
HTMLButtonElement