Interface for a class Fab
EmitType<Event>
Triggers once the component rendering is completed.
string
Defines the text content
of the Button element.
<button id="primarybtn"></button>
import { Button } from '@syncfusion/ej2-buttons';
let button: Button = new Button({content: 'JasButton'});
button.appendTo('#normalbtn');
string
Defines class/multiple classes separated by a space in the Button element. The Button types, styles, and
size can be defined by using
this
.
<button id="flatbtn">Flat</button>
import { Button } from '@syncfusion/ej2-buttons';
let button = new Button({ cssClass: 'e-flat e-primary' });
button.appendTo('#flatbtn');
boolean
Specifies a value that indicates whether the Button is disabled
or not.
boolean
Defines whether to allow the cross-scripting site or not.
boolean
Enable or disable persisting component’s state between page reloads.
boolean
Enable or disable rendering component in right to left direction.
string
Defines class/multiple classes separated by a space for the Button that is used to include an icon. Buttons can also include font icon and sprite image.
string
| IconPosition
Positions the icon before/after the text content in the Button. The possible values are:
boolean
Defines whether to apply primary style for FAB.
boolean
Makes the Button toggle, when set to true
. When you click it, the state changes from normal to active.
string
| FabPosition
Defines the position of the FAB relative to target. The possible values are:
<button id='fab'></button>
import { Fab } from '@syncfusion/ej2-buttons';
let fab: Fab = new Fab({
content:'fab',
position:'BottomLeft'
});
fab.appendTo('#fab');
string
| HTMLElement
Defines the selector that points to an element in which the FAB will be positioned. By default, FAB is positioned based on viewport of browser. The target element must have relative position, else FAB will get positioned based on the closest element which has relative position.
boolean
Defines whether the fab is visible or hidden.