Home Reference Source
import {NumSlider} from './scripts/widgets/ui_numsliders.js'
public class | source

NumSlider

Expression Extends:

class NumSlider extends NumberSliderBase(ValueButtonBase)

Extends:

NumberSliderBase → NumSlider

Static Method Summary

Static Public Methods
public static

define(): {"tagname": string, "style": string, "parentStyle": string}

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public

expRate: *

public
public
public
public

ma: *

public
public

mpos: *

public get

name: *

Current name label.

public set

Current name label.

public
public
public get

value: *

public set
public
Private Members
private
private
private
private
private
private
private

Method Summary

Public Methods
public
public
public

dragStart(e: *)

public

overArrow(x: *, y: *): number

public

setCSS()

public

setMpos(e: *)

public

setValue(value: *, fire_onchange: boolean, setDataPath: boolean, checkConstraints: boolean)

public
public

update()

public
public

updateName(force: *)

Private Methods
private

_genLabel(): *

private
private

Static Public Methods

public static define(): {"tagname": string, "style": string, "parentStyle": string} source

Return:

{"tagname": string, "style": string, "parentStyle": string}

Public Constructors

public constructor() source

Public Members

public editAsBaseUnit: * source

public expRate: * source

public hidden: boolean source

public isInt: boolean source

public last_time: * source

public ma: * source

public mdown: boolean source

public mpos: * source

public get name: * source

Current name label. If set to null label will be pulled from the datapath api.

public set name source

Current name label. If set to null label will be pulled from the datapath api.

public range: undefined[] source

public start_mpos: * source

public get value: * source

public set value source

public vertical: boolean source

Private Members

private _highlight: * source

private _last_disabled: boolean source

private _last_label: * source

private _last_overarrow: boolean source

private _name: string source

private _on_click: * source

private _value: number source

Public Methods

public bindEvents() source

public doRange() source

public dragStart(e: *) source

Params:

NameTypeAttributeDescription
e *

public overArrow(x: *, y: *): number source

Params:

NameTypeAttributeDescription
x *
y *

Return:

number

public setCSS() source

public setMpos(e: *) source

Params:

NameTypeAttributeDescription
e *

public setValue(value: *, fire_onchange: boolean, setDataPath: boolean, checkConstraints: boolean) source

Params:

NameTypeAttributeDescription
value *
fire_onchange boolean
  • optional
  • default: true
setDataPath boolean
  • optional
  • default: true
checkConstraints boolean
  • optional
  • default: true

public swapWithTextbox() source

public update() source

public updateDataPath() source

public updateName(force: *) source

Params:

NameTypeAttributeDescription
force *

Private Methods

private _genLabel(): * source

Return:

*

private _getArrowSize(): * source

Return:

*

private _redraw() source