ButtonModelProps
12 Sep 20251 minute to read
An object that is used to configure the action button model properties and event.
Properties
model ButtonModel
Specifies the Button component model properties to render the Toast action buttons.
<div id="element"> </div>let toast: Toast = new Toast({
buttons:
[{
model: { content:`Button1`, cssClass: `e-success` }
}]
});
toast.appendTo('#element');Defaults to null
Events
click EmitType<Event>
Specifies the click event binding of action buttons created within Toast.