Blockbench Reference Docs
    Preparing search index...

    Class NumSlider

    Anything that can go into a toolbar, including actions, tools, toggles, widgets etc.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    category?: string
    condition?: any
    description: string
    icon?: string
    id: string
    keybind: Keybind
    name: string
    node: HTMLElement
    nodes: HTMLElement[]
    plugin?: string

    The ID of the plugin that created the object

    tool_setting?: string

    Define a tool setting key under which the value of the slider is saved on the selected tool

    variations?: { [key: string]: { description?: string; name: string } }
    constructing?: BarItem

    Methods

    • Adds a label to the HTML element of the bar item

      Parameters

      • Optionalin_bar: boolean

        Set to true to generate an in-bar label, as opposed to a regular on-hover label

      • Optionalaction: any

        Provide the action to generate the label. This defaults to self and is only needed in special cases

      Returns void

    • Adds a label to the HTML element of the bar item

      Parameters

      • Optionalin_bar: boolean

        Set to true to generate an in-bar label, as opposed to a regular on-hover label

      • Optionalaction: any

        Provide the action to generate the label. This defaults to self and is only needed in special cases

      Returns void