New to Kendo UI for Vue? Start a free 30-day trial

Represents the props of the Kendo UI for Vue FloatingToolbar. The default slot accepts ToolbarItem, ToolbarSeparator, ToolbarSpacer, and custom tools.

Definition

Package:@progress/kendo-vue-buttons

Syntax:

vue
<FloatingToolbar :draggable="true">
    <ToolbarItem><Button :togglable="true">Bold</Button></ToolbarItem>
</FloatingToolbar>

Properties

anchor?

HTMLElement

The anchor element. null or undefined enables free positioning.

Example:
vue
<FloatingToolbar :anchor="anchor" />

appendTo?

HTMLElement

Append target. undefined uses the body; null renders inline without moving the popup. Changing the target resets a manually positioned toolbar.

Default:

document.body

Example:
vue
<FloatingToolbar :append-to="container" />

Accessible label of the hosted Toolbar.

Example:
vue
<FloatingToolbar :aria-label="'Formatting tools'" />

Number of pixels scrolled by each scroll button activation.

Default:

100

Example:
vue
<FloatingToolbar :overflow="'scroll'" :button-scroll-speed="150" />

Additional classes on the inner floating element. Native class is also supported.

Example:
vue
<FloatingToolbar :class-name="'formatting-tools'" />

Horizontal (left, center, right) and vertical (top, center, bottom) alignment without an anchor.

Default:

{ horizontal: 'center', vertical: 'top' }

Example:
vue
<FloatingToolbar :container-align="{ horizontal: 'center', vertical: 'bottom' }" />

dir?

string

HTML direction: ltr or rtl.

Example:
vue
<FloatingToolbar :dir="'rtl'" />

draggable?

boolean

Shows the handle and enables pointer dragging and M-key Move mode. Arrows move 10px; Enter or Space commits, and Escape restores the previous position and anchoring.

Default:

false

Example:
vue
<FloatingToolbar :draggable="true" />

fillMode?

"solid" | "outline" | "flat"

Appearance: solid, flat, or outline. Undefined uses the theme default. Scroll buttons default to flat when no fill mode is specified.

Example:
vue
<FloatingToolbar :fill-mode="'outline'" />

id?

string

HTML ID on the Popup positioning container.

Example:
vue
<FloatingToolbar :id="'formatting-bar'" />

Enables the hosted Toolbar's built-in keyboard navigation.

Default:

true

Example:
vue
<FloatingToolbar :keyboard-navigation="false" />

margin?

{ horizontal?: number; vertical?: number }

Horizontal and vertical gap from the anchor, or inset from the free-position container, in pixels.

Example:
vue
<FloatingToolbar :margin="{ horizontal: 0, vertical: 8 }" />

Next scroll button component, render function, or named template.

Example:
vue
<FloatingToolbar :overflow="'scroll'" :next-button="'next'">
    <template #next="{ props }"><span v-bind="props">Next</span></template>
</FloatingToolbar>

onDragend?

(event: FloatingToolbarDragEventBase) => void

Fires when pointer dragging or keyboard Move mode ends, including Escape cancellation.

Parameters:eventFloatingToolbarDragEventBase
Example:
vue
<FloatingToolbar :draggable="true" @dragend="handleDragend" />

Fires before pointer dragging or keyboard Move mode. Call preventDefault() to cancel.

Parameters:eventFloatingToolbarDragStartEvent
Example:
vue
<FloatingToolbar :draggable="true" @dragstart="event => event.preventDefault()" />

onMove?

(event: FloatingToolbarDragEventBase) => void

Fires for pointer, keyboard, and imperative position changes.

Parameters:eventFloatingToolbarDragEventBase
Example:
vue
<FloatingToolbar @move="event => savePosition(event.top, event.left)" />

Forwards the hosted Toolbar resize payload without modification, including nativeEvent.

Parameters:eventToolbarResizeEvent
Example:
vue
<FloatingToolbar @resize="event => toolbarWidth = event.offsetWidth" />

overflow?

"none" | "scroll"

Overflow mode: none or scroll. Section overflow is not supported.

Default:

none

Example:
vue
<FloatingToolbar :overflow="'scroll'" />

Preferred physical side: top, bottom, left, or right. May flip on collision. Applies only when anchored.

Default:

top

Example:
vue
<FloatingToolbar :anchor="anchor" :position="'bottom'" />

Previous scroll button component, render function, or named template.

Example:
vue
<FloatingToolbar :overflow="'scroll'" :prev-button="'previous'">
    <template #previous="{ props }"><span v-bind="props">Previous</span></template>
</FloatingToolbar>

scrollButtons?

"hidden" | "visible" | "auto"

Scroll button visibility: auto, visible, or hidden.

Default:

auto

Example:
vue
<FloatingToolbar :overflow="'scroll'" :scroll-buttons="'visible'" />

scrollButtonsPosition?

"split" | "end" | "start"

Scroll button placement: start, end, or split.

Default:

split

Example:
vue
<FloatingToolbar :overflow="'scroll'" :scroll-buttons-position="'end'" />

size?

"small" | "medium" | "large"

Size: small, medium, or large. Undefined uses the theme default.

Example:
vue
<FloatingToolbar :size="'large'" />

style?

CSSProperties

CSS styles on the Popup positioning container.

Example:
vue
<FloatingToolbar :style="{ zIndex: 10100 }" />

tabIndex?

number

Tab index of the hosted Toolbar's current tool. Other tools receive -1.

Default:

0

Example:
vue
<FloatingToolbar :tab-index="0" />

width?

string | number

Width as a number of pixels or a CSS string, such as 50%. Undefined leaves it theme-controlled.

Example:
vue
<FloatingToolbar :width="400" />