🔬
Selectable
  • Selectable
  • Getting Started
    • Install
    • Set Up
    • States
    • Items
    • Demos
      • Checkboxes
      • Dropzone Integration
      • Sortable Integration
  • API
    • Options
      • appendTo (deprecated)
      • autoRefresh
      • autoScroll
      • classes
      • container
      • filter
      • handle
      • ignore
      • lasso
      • lassoSelect
      • maxSelectable
      • saveState
      • throttle
      • toggle
      • tolerance
      • touch
    • Properties
    • Methods
      • add()
      • attachEvents()
      • clear()
      • deselect()
      • destroy()
      • detachEvents()
      • disable()
      • enable()
      • getItems()
      • getNodes()
      • getSelectedItems()
      • getUnSelectedItems()
      • getSelectedNodes()
      • getUnSelectedNodes()
      • getFirstSelectedItem()
      • getFirstSelectedNode()
      • init()
      • invert()
      • off()
      • on()
      • once()
      • redo()
      • refresh()
      • remove()
      • select()
      • selectAll()
      • setContainer()
      • state()
      • toggle()
      • undo()
      • update()
    • Events
      • init
      • destroyed
      • start
      • drag
      • end
      • select
      • deselect
      • selecting
      • deselecting
      • add
      • remove
      • update
      • state
      • enabled
      • disabled
Powered by GitBook
On this page
  • Properties
  • Example
  1. API
  2. Options

classes

PreviousautoScrollNextcontainer

Last updated 1 year ago


Type: Object

Default:

{
    lasso: "ui-lasso",
    handle: "ui-handle",
    focused: "ui-focused",
    selected: "ui-selected",
    container: "ui-container",
    selecting: "ui-selecting",
    selectable: "ui-selectable",
    deselecting: "ui-deselecting"
}

Defines the class names used by the instance.


Properties

  • container - the container defined by the option

  • selectable - the class name used to mark items as selectable

  • selected - the class name used for selected items

  • selecting - the class name used when an item is highlighted for selection

  • deselecting - the class name used when an item is highlighted for deselection

  • lasso - the class name used for the lasso

  • focused - the class name when hovering over the container (v0.22.0 and above)

  • handle - the class name added to the defined handle elements (v0.22.0 and above)


Example

const selectable = new Selectable({
    classes: {
        lasso: "my-custom-lasso-classname",
        selected: "my-custom-selected-classname",
        container: "my-custom-container-classname",
        selecting: "my-custom-selecting-classname",
        selectable: "my-custom-selectable-classname",
        unselecting: "my-custom-unselecting-classname"
    }
});
container