@jsvision/ui / yesButton
Function: yesButton()
yesButton(
i18n?):Button
Defined in: ui/src/dialog/buttons.ts:73
A Yes button — the dialog default; emits Commands.yes when activated.
Parameters
i18n?
Translation service for the built-in label; defaults to isolated English UI text.
Returns
A Button labelled Yes.
Example
ts
import { Dialog, yesButton, noButton } from '@jsvision/ui';
const dialog = new Dialog({ title: ' Confirm ', width: 30, height: 8 });
dialog.add(yesButton()); // default; also activates on Enter
dialog.add(noButton());