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

PopoverProps

Interface

Represents the props of the Kendo UI for Vue Popover component.

Definition

Package:@progress/kendo-vue-tooltip

Properties

anchor?

HTMLElement

Sets the element that the Popover uses as its anchor. When the Popover closes, it moves focus back to this element.

animate?

boolean | PopupAnimation

Sets the animation of the Popover (see example). Accepts a boolean or a PopoverAnimation object.

appendTo?

HTMLElement

Sets the container to which the Popover is appended.

autoFocus?

boolean

Sets if the Popover moves focus to its first focusable element when it opens.

Default:

true

callout?

boolean

Sets if the Popover shows a callout (see example).

Default:

true

className?

string | string[] | { [key: string]: boolean }

Sets CSS classes on the animation container of the Popover.

Sets how the Popover behaves when it does not fit in the viewport (see example).

Default:

{ horizontal: 'none', vertical: 'none' }

contentStyle?

CSSProperties

Sets the styles of the Popover body element.

id?

string

Sets the id of the Popover element. The Popover also uses it to build the id values of its title and body, which it sets as its aria-labelledby and aria-describedby values. When you do not set it, the Popover generates a unique id.

Sets the margin between the Popover and its anchor in pixels. When you do not set it and callout is true, the Popover adds space for the callout.

Sets the absolute position of the Popover.

onClose?

(event: PopoverCloseEvent) => void

Fires after the Popover closes.

Parameters:eventPopoverCloseEvent

Fires when the user presses Esc while the focus is inside the Popover.

Parameters:eventPopoverKeyDownEvent

onOpen?

(event: PopoverOpenEvent) => void

Fires after the Popover opens.

Parameters:eventPopoverOpenEvent

Fires after the Popover calculates its position.

Parameters:eventPopoverPositionEvent

popoverClass?

string | string[] | { [key: string]: boolean }

Sets CSS classes on the Popover element.

Sets the position of the Popover relative to its anchor (see example).

Default:

top

Sets the positioning mode of the Popover.

Default:

fixed

scale?

number

Sets the document scale that the Popover uses to calculate its position (see example).

show?

boolean

Sets if the Popover is visible.

Default:

false

style?

CSSProperties

Sets the styles of the animation container of the Popover.

title?

string | VNode​<RendererNode, RendererElement, { [key: string]: any }> | () => VNode​<RendererNode, RendererElement, { [key: string]: any }>

Sets the title of the Popover. Accepts a string, a VNode, or a function that returns a VNode. The Popover uses the title element as its aria-labelledby value.