Represents the Essential JS 2 VueJS Fab Component
<ejs-fab></ejs-fab>
string
Defines the text content
of the Button element.
<template>
<ejs-button :isPrimary="true" :content="content"></ejs-button>
<template>
<style>
</style>
<script>
import Vue from "vue";
import { ButtonPlugin } from "@syncfusion/ej2-vue-buttons";
Vue.use(ButtonPlugin);
export default Vue.extend({
data: function(){
return{
content: 'Primary'
}
}
methods: { }
}});
</script>
Defaults to ""
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
.
<template>
<ejs-button :cssClass="cssClass_flat" :content="content">Primary</ejs-button>
<template>
<style>
</style>
<script>
import Vue from "vue";
import { ButtonPlugin } from "@syncfusion/ej2-vue-buttons";
Vue.use(ButtonPlugin);
export default Vue.extend({
data: function(){
return{
cssClass_flat: 'e-flat'
}
}
methods: { }
}});
</script>
Defaults to ""
boolean
Specifies a value that indicates whether the Button is disabled
or not.
Defaults to false.
boolean
Specifies whether to enable the rendering of untrusted HTML values in the Button component. If ‘enableHtmlSanitizer’ set to true, the component will sanitize any suspected untrusted strings and scripts before rendering them.
Defaults to true
boolean
Enable or disable persisting component’s state between page reloads.
Defaults to false
boolean
Enable or disable rendering component in right to left direction.
Defaults to false
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.
Defaults to ""
string
| IconPosition
Positions the icon before/after the text content in the Button. The possible values are:
Defaults to IconPosition.Left
boolean
Defines whether to apply primary style for FAB.
Defaults to true
boolean
Makes the Button toggle, when set to true
. When you click it, the state changes from normal to active.
Defaults to false
string
| FabPosition
Defines the position of the FAB relative to target. The possible values are:
<template>
<ejs-fab id='fab' content='fab' position='BottomLeft'></ejs-fab>
</template>
<script>
import Vue from 'vue';
import { FabPlugin } from '@syncfusion/ej2-vue-buttons';
Vue.use(FabPlugin);
export default {}
</script>
Defaults to FabPosition.BottomRight
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.
Defaults to ”
boolean
Defines whether the fab is visible or hidden.
Defaults to true.
Click the button element its native method
Returns void
Destroys the FAB instance.
Returns void
Sets the focus to Button its native method
Returns void
Get the properties to be maintained in the persisted state.
Returns string
Refreshes the FAB position. You can call this method to re-position FAB when target is resized.
Returns void
EmitType<Event>
Triggers once the component rendering is completed.