Skip to main content
  • A customizable button component that can be used to add custom actions and extend the functionality of any Velt component. Some examples include:
    • Add custom filtering, sorting and grouping to the Comment Sidebar
    • Add custom actions to each item in the Notifications panel.
    • Add custom actions to the Comment Dialog.
  • In the callback event, in addition to returning the button context, it also returns the key component data that it sits within Eg: CommentAnnotation, Comment, Notification, CommentSidebarData etc.

Types

  • button: Basic clickable button
  • button-toggle: Toggleable button that maintains state
  • single-select: Single select (radio button) group
  • multi-select: Multi select (checkbox) group

Component Props

PropertyTypeRequiredDescription
idstringYesUnique identifier for the button. This can be a static id or a dynamic id using a template variable.
typestringNoButton type: ‘button’ (default), ‘button-toggle’, ‘multi-select’, or ‘single-select’
disabledbooleanNoWhether the button is disabled
activebooleanNoWhether the button is in active/selected state. Use this if you want to add a default state to the button. Applies to ‘button-toggle’, ‘multi-select’, or ‘single-select’ buttons.
groupstringNoGroup identifier for single-select/multi-select buttons

Usage

Button

Handle the button click event:

Button Toggle

Handle the button click event:

Single Select Button Group

Handle the button click event:

Multi Select Button Group

Handle the button click event:

Callback Event

The Velt Button Wireframe emits events when users interact with it. You can listen to these events to implement custom behaviors.

Set Dynamic ID to Velt Button

  • You can use template variables to set the id.

Reset Velt Button State