Bitbybit Docs
    Preparing search index...

    Class CreateSliderDto (Inputs.BabylonGui)

    Feeds babylon.gui.slider.createSlider: the name, range, starting value, step, direction, colors, optional size and thumb of a slider.

    Index

    Constructors

    • Parameters

      • Optionalname: string
      • Optionalminimum: number
      • Optionalmaximum: number
      • Optionalvalue: number
      • Optionalstep: number
      • OptionalisVertical: boolean
      • Optionalcolor: string
      • Optionalbackground: string
      • Optionalwidth: string | number
      • Optionalheight: string | number
      • OptionaldisplayThumb: boolean

      Returns CreateSliderDto

    Properties

    name: string

    Name the slider is known by, which control.getControlByName finds it by

    sliderName
    
    minimum: number

    The value at the left or bottom end

    0
    

    -Infinity

    Infinity

    0.1

    maximum: number

    The value at the right or top end

    10
    

    -Infinity

    Infinity

    0.1

    value: number

    The value the slider starts at, between the minimum and maximum

    5
    

    -Infinity

    Infinity

    0.1

    step: number

    The increment the value moves in; 1 gives whole numbers, 0 moves smoothly

    0.01
    

    -Infinity

    Infinity

    0.01

    isVertical: boolean

    When true, the slider runs bottom to top; when false, left to right

    false
    
    color: string

    CSS color of the filled part of the track

    #f0cebb
    
    background: string

    CSS color of the unfilled part of the track

    black
    
    width?: string | number

    Width as a pixel string or a fraction; left out, a horizontal slider fills the parent and a vertical one is 42 pixels

    undefined
    

    true

    height?: string | number

    Height as a pixel string or a fraction; left out, a vertical slider fills the parent and a horizontal one is 42 pixels

    undefined
    

    true

    displayThumb: boolean

    When true, the draggable thumb is drawn; when false, only the track

    true