Positions in Vue Floating action button component
11 Jun 202412 minutes to read
The floating action button can be positioned anywhere on the target
using the position
property. If the target
is not defined, then FAB is positioned based on the browser viewport.
The position values of Floating Action Button are as follows:
- TopLeft
- TopCenter
- TopRight
- MiddleLeft
- MiddleCenter
- MiddleRight
- BottomLeft
- BottomCenter
- BottomRight
<template>
<!-- To render Floating Action Button in BottomLeft position -->
<ejs-fab id='fab' content='Add' position='BottomLeft'></ejs-fab>
</template>
<script setup>
import { FabComponent as EjsFab } from "@syncfusion/ej2-vue-buttons";
import { enableRipple } from '@syncfusion/ej2-base';
enableRipple(true);
</script>
<style>
@import '../node_modules/@syncfusion/ej2-base/styles/material.css';
@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';
</style>
Below example demonstrates different supported positions of FAB.
<template>
<div>
<div id="target" style="position:relative;min-height:350px;border:1px solid;"></div>
<!-- To render Floating Action Button in TopLeft position -->
<ejs-fab id="fab1" iconCss='fab-icons fab-icon-people' position='TopLeft' target='#target'></ejs-fab>
<!-- To render Floating Action Button in TopCenter position -->
<ejs-fab id="fab2" iconCss='fab-icons fab-icon-people' position='TopCenter' target='#target'></ejs-fab>
<!-- To render Floating Action Button in TopRight position -->
<ejs-fab id="fab3" iconCss='fab-icons fab-icon-people' position='TopRight' target='#target'></ejs-fab>
<!-- To render Floating Action Button in MiddleLeft position -->
<ejs-fab id="fab4" iconCss='fab-icons fab-icon-people' position='MiddleLeft' target='#target'></ejs-fab>
<!-- To render Floating Action Button in MiddleCenter position -->
<ejs-fab id="fab5" iconCss='fab-icons fab-icon-people' position='MiddleCenter' target='#target'></ejs-fab>
<!-- To render Floating Action Button in MiddleRight position -->
<ejs-fab id="fab6" iconCss='fab-icons fab-icon-people' position='MiddleRight' target='#target'></ejs-fab>
<!-- To render Floating Action Button in BottomLeft position -->
<ejs-fab id="fab7" iconCss='fab-icons fab-icon-people' position='BottomLeft' target='#target'></ejs-fab>
<!-- To render Floating Action Button in BottomCenter position -->
<ejs-fab id="fab8" iconCss='fab-icons fab-icon-people' position='BottomCenter' target='#target'></ejs-fab>
<!-- To render Floating Action Button in BottomRight position -->
<ejs-fab id="fab9" iconCss='fab-icons fab-icon-people' position='BottomRight' target='#target'></ejs-fab>
</div>
</template>
<script setup>
import { FabComponent as EjsFab } from "@syncfusion/ej2-vue-buttons";
import { enableRipple } from '@syncfusion/ej2-base';
enableRipple(true);
</script>
<style>
@import '../node_modules/@syncfusion/ej2-base/styles/material.css';
@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';
.fab-container {
position: relative;
min-height: 310px;
min-width: 100%;
}
@font-face {
font-family: 'fab-icons';
src: url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAAKAIAAAwAgT1MvMj1tSgIAAAEoAAAAVmNtYXDnYOfNAAAByAAAAFZnbHlmkfZLRAAAAkgAABboaGVhZCF5f3EAAADQAAAANmhoZWEIUQQTAAAArAAAACRobXR4SAAAAAAAAYAAAABIbG9jYTveNR4AAAIgAAAAJm1heHABIQIXAAABCAAAACBuYW1lkwSegQAAGTAAAAIxcG9zdKKfPWYAABtkAAAAzQABAAAEAAAAAFwEAAAAAAAD9AABAAAAAAAAAAAAAAAAAAAAEgABAAAAAQAAbzQqW18PPPUACwQAAAAAAN8znUAAAAAA3zOdQAAAAAAD9AP0AAAACAACAAAAAAAAAAEAAAASAgsABQAAAAAAAgAAAAoACgAAAP8AAAAAAAAAAQQAAZAABQAAAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABA5wDnEAQAAAAAXAQAAAAAAAABAAAAAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAAAAAAAgAAAAMAAAAUAAMAAQAAABQABABCAAAABAAEAAEAAOcQ//8AAOcA//8AAAABAAQAAAABAAIAAwAEAAUABgAHAAgACQAKAAsADAANAA4ADwAQABEAAAAAAAAB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FMAeQBuAGMAZgB1AHMAaQBvAG4AIABNAGUAdAByAG8AIABTAHQAdQBkAGkAbwB3AHcAdwAuAHMAeQBuAGMAZgB1AHMAaQBvAG4ALgBjAG8AbQAAAAACAAAAAAAAAAoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABIBAgEDAQQBBQEGAQcBCAEJAQoBCwEMAQ0BDgEPARABEQESARMABXNoYXJlCHNoYXJlLTAxBGVkaXQHZWRpdC0wMQNhZGQHdXBhcnJvdwVoZWFydANtYXAMdm9pY2Utc2VhcmNoCWZhdm9yaXRlcwtjaGF0LXBlcnNvbghib29rbWFyawhzaG9wcGluZwRwbGF5BXBhdXNlCHJlbWluZGVyCHNldHRpbmdzAAAAAAA=) format('truetype');
font-weight: normal;
font-style: normal;
}
[class^="fab-icon-"],
[class*=" fab-icon-"] {
font-family: 'fab-icons' !important;
speak: none;
font-size: 55px;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.fab-icon-people:before {
content: "\e70a";
}
</style>
<template>
<div>
<div id="target" style="position:relative;min-height:350px;border:1px solid;"></div>
<!-- To render Floating Action Button in TopLeft position -->
<ejs-fab id="fab1" iconCss='fab-icons fab-icon-people' position='TopLeft' target='#target'></ejs-fab>
<!-- To render Floating Action Button in TopCenter position -->
<ejs-fab id="fab2" iconCss='fab-icons fab-icon-people' position='TopCenter' target='#target'></ejs-fab>
<!-- To render Floating Action Button in TopRight position -->
<ejs-fab id="fab3" iconCss='fab-icons fab-icon-people' position='TopRight' target='#target'></ejs-fab>
<!-- To render Floating Action Button in MiddleLeft position -->
<ejs-fab id="fab4" iconCss='fab-icons fab-icon-people' position='MiddleLeft' target='#target'></ejs-fab>
<!-- To render Floating Action Button in MiddleCenter position -->
<ejs-fab id="fab5" iconCss='fab-icons fab-icon-people' position='MiddleCenter' target='#target'></ejs-fab>
<!-- To render Floating Action Button in MiddleRight position -->
<ejs-fab id="fab6" iconCss='fab-icons fab-icon-people' position='MiddleRight' target='#target'></ejs-fab>
<!-- To render Floating Action Button in BottomLeft position -->
<ejs-fab id="fab7" iconCss='fab-icons fab-icon-people' position='BottomLeft' target='#target'></ejs-fab>
<!-- To render Floating Action Button in BottomCenter position -->
<ejs-fab id="fab8" iconCss='fab-icons fab-icon-people' position='BottomCenter' target='#target'></ejs-fab>
<!-- To render Floating Action Button in BottomRight position -->
<ejs-fab id="fab9" iconCss='fab-icons fab-icon-people' position='BottomRight' target='#target'></ejs-fab>
</div>
</template>
<script>
import { FabComponent } from "@syncfusion/ej2-vue-buttons";
import { enableRipple } from '@syncfusion/ej2-base';
enableRipple(true);
export default {
name: "App",
components: {
"ejs-fab": FabComponent
}
}
</script>
<style>
@import '../node_modules/@syncfusion/ej2-base/styles/material.css';
@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';
.fab-container {
position: relative;
min-height: 310px;
min-width: 100%;
}
@font-face {
font-family: 'fab-icons';
src: url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAAKAIAAAwAgT1MvMj1tSgIAAAEoAAAAVmNtYXDnYOfNAAAByAAAAFZnbHlmkfZLRAAAAkgAABboaGVhZCF5f3EAAADQAAAANmhoZWEIUQQTAAAArAAAACRobXR4SAAAAAAAAYAAAABIbG9jYTveNR4AAAIgAAAAJm1heHABIQIXAAABCAAAACBuYW1lkwSegQAAGTAAAAIxcG9zdKKfPWYAABtkAAAAzQABAAAEAAAAAFwEAAAAAAAD9AABAAAAAAAAAAAAAAAAAAAAEgABAAAAAQAAbzQqW18PPPUACwQAAAAAAN8znUAAAAAA3zOdQAAAAAAD9AP0AAAACAACAAAAAAAAAAEAAAASAgsABQAAAAAAAgAAAAoACgAAAP8AAAAAAAAAAQQAAZAABQAAAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABA5wDnEAQAAAAAXAQAAAAAAAABAAAAAAAABAAAAAQAAA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uY29tACAAcwBiAC0AaQBjAG8AbgBzAFIAZQBnAHUAbABhAHIAcwBiAC0AaQBjAG8AbgBzAHMAYgAtAGkAYwBvAG4AcwBWAGUAcgBzAGkAbwBuACAAMQAuADAAcwBiAC0AaQBjAG8AbgBzAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAHUAcwBpAG4AZwAgAFMAeQBuAGMAZgB1AHMAaQBvAG4AIABNAGUAdAByAG8AIABTAHQAdQBkAGkAbwB3AHcAdwAuAHMAeQBuAGMAZgB1AHMAaQBvAG4ALgBjAG8AbQAAAAACAAAAAAAAAAoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABIBAgEDAQQBBQEGAQcBCAEJAQoBCwEMAQ0BDgEPARABEQESARMABXNoYXJlCHNoYXJlLTAxBGVkaXQHZWRpdC0wMQNhZGQHdXBhcnJvdwVoZWFydANtYXAMdm9pY2Utc2VhcmNoCWZhdm9yaXRlcwtjaGF0LXBlcnNvbghib29rbWFyawhzaG9wcGluZwRwbGF5BXBhdXNlCHJlbWluZGVyCHNldHRpbmdzAAAAAAA=) format('truetype');
font-weight: normal;
font-style: normal;
}
[class^="fab-icon-"],
[class*=" fab-icon-"] {
font-family: 'fab-icons' !important;
speak: none;
font-size: 55px;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.fab-icon-people:before {
content: "\e70a";
}
</style>
Custom position
You can define the custom position of the Floating Action Button by override the top
, left
, right
, and bottom
CSS properties using cssClass
. For detailed information, refer app.vue
file below.
<template>
<div>
<div id="targetElement" style="position:relative;min-height:350px;border:1px solid;"></div>
<!-- To render Floating Action Button -->
<ejs-fab id='fab' iconCss='e-icons e-edit' cssClass='custom-position' target='#targetElement'></ejs-fab>
</div>
</template>
<script setup>
import { FabComponent as EjsFab } from "@syncfusion/ej2-vue-buttons";
import { enableRipple } from '@syncfusion/ej2-base';
enableRipple(true);
</script>
<style>
@import '../node_modules/@syncfusion/ej2-base/styles/material.css';
@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';
.e-fab.e-btn.custom-position {
left: 40px;
top: 40px;
bottom: unset;
right: unset;
}
</style>
<template>
<div>
<div id="targetElement" style="position:relative;min-height:350px;border:1px solid;"></div>
<!-- To render Floating Action Button -->
<ejs-fab id='fab' iconCss='e-icons e-edit' cssClass='custom-position' target='#targetElement'></ejs-fab>
</div>
</template>
<script>
import { FabComponent } from "@syncfusion/ej2-vue-buttons";
import { enableRipple } from '@syncfusion/ej2-base';
enableRipple(true);
export default {
name: "App",
components: {
"ejs-fab": FabComponent
}
}
</script>
<style>
@import '../node_modules/@syncfusion/ej2-base/styles/material.css';
@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';
.e-fab.e-btn.custom-position {
left: 40px;
top: 40px;
bottom: unset;
right: unset;
}
</style>