trait Slider extends Object with Component
- Annotations
- @JSType() @native()
- Alphabetic
- By Inheritance
- Slider
- Component
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def calculateDistance(event: Event): Double
Calculate distance for slider
Calculate distance for slider
- event
The event that caused this function to run.
- returns
The current position of the Slider.
- position.x for vertical
Sliders - position.y for horizontal
Sliders
- position.x for vertical
- abstract def createEl(type: String, props: Any, attributes: Any): Element
Create the
Sliders DOM element.Create the
Sliders DOM element.- type
Type of element to create.
- returns
The element that gets created.
- abstract def disable(): Unit
Disable controls for this slider if they are enabled
- abstract def enable(): Unit
Enable controls for this slider if they are disabled
- abstract def enabled(): Boolean
Are controls are currently enabled for this slider or not.
Are controls are currently enabled for this slider or not.
- returns
true if controls are enabled, false otherwise
- abstract def handleClick(event: Event): Unit
Listener for click events on slider, used to prevent clicks from bubbling up to parent elements like button menus.
Listener for click events on slider, used to prevent clicks from bubbling up to parent elements like button menus.
- event
Event that caused this object to run
- abstract def handleMouseDown(event: Event): Unit
Handle
mousedownortouchstartevents on theSlider.Handle
mousedownortouchstartevents on theSlider.- event
mousedownortouchstartevent that triggered this function listens mousedown listens touchstart fires Slider#slideractive
- abstract def handleMouseMove(event: Event): Unit
Handle the
mousemove,touchmove, andmousedownevents on thisSlider.Handle the
mousemove,touchmove, andmousedownevents on thisSlider. Themousemoveandtouchmoveevents will only only trigger this function duringmousedownandtouchstart. This is due toSlider#handleMouseDownandSlider#handleMouseUp.- event
mousedown,mousemove,touchstart, ortouchmoveevent that triggered this function listens mousemove listens touchmove
- abstract def handleMouseUp(event: Event): Unit
Handle
mouseuportouchendevents on theSlider.Handle
mouseuportouchendevents on theSlider.- event
The
mouseupevent that caused this to run. listens touchend listens mouseup fires Slider#sliderinactive
- abstract val options_: SliderOptions
- abstract def update(): Double
Update the progress bar of the
Slider.Update the progress bar of the
Slider.- returns
The percentage of progress the progress bar represents as a number from 0 to 1.
- abstract def vertical(): Boolean
- abstract def vertical(bool: Boolean): Unit
Get/set if slider is horizontal for vertical
Get/set if slider is horizontal for vertical
- returns
- true if slider is vertical, and getting
- false if the slider is horizontal, and getting
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def $(selector: String, context: |[Element, String] = ???): Element
- Definition Classes
- Component
- def $$(selector: String, context: |[Element, String] = ???): NodeList[Node]
- Definition Classes
- Component
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addChild(child: |[String, Component], options: Object = ???): Unit
- Definition Classes
- Component
- def addClass(classToAdd: String): Unit
- Definition Classes
- Component
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def buildCSSClass(): String
- Definition Classes
- Component
- def children(): Array[Component]
- Definition Classes
- Component
- def clearInterval(intervalId: Int): Unit
- Definition Classes
- Component
- def clearTimeout(timeoutId: Int): Unit
- Definition Classes
- Component
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def contentEl(): Element
- Definition Classes
- Component
- def controlText(el: Element): Element
- Definition Classes
- Component
- def createEl(tagName: String = ???, properties: Object = ???, attributes: Object = ???): Element
- Definition Classes
- Component
- def dimensions(width: |[Int, String], height: |[Int, String]): Unit
- Definition Classes
- Component
- def dispose(): Unit
- Definition Classes
- Component
- def el(): Element
- Definition Classes
- Component
- def enableTouchActivity(): Unit
- Definition Classes
- Component
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def getChild(name: String): Component
- Definition Classes
- Component
- def getChildById(id: String): Component
- Definition Classes
- Component
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def handleBlur(): Unit
- Definition Classes
- Component
- def handleClick(): Unit
- Definition Classes
- Component
- def handleFocus(): Unit
- Definition Classes
- Component
- def handleKeyPress(): Unit
- Definition Classes
- Component
- def hasClass(classToCheck: String): Boolean
- Definition Classes
- Component
- def hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def height(num: |[Int, String] = ???, skipListeners: Boolean = ???): Int
- Definition Classes
- Component
- def hide(): Unit
- Definition Classes
- Component
- def id(): String
- Definition Classes
- Component
- def initChildren(): Unit
- Definition Classes
- Component
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- def name(): String
- Definition Classes
- Component
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def off(event: String, handler: Function): Unit
- Definition Classes
- Component
- def off(component: Component, event: String, handler: Function): Unit
- Definition Classes
- Component
- def on(event: String, handler: Function): Unit
- Definition Classes
- Component
- def on(component: Component, event: String, handler: Function): Unit
- Definition Classes
- Component
- def one(event: String, handler: Function): Unit
- Definition Classes
- Component
- def one(component: Component, event: String, handler: Function): Unit
- Definition Classes
- Component
- def options(obj: Object): Object
- Definition Classes
- Component
- def player(): Player
- Definition Classes
- Component
- def propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
- def ready(fn: Function, sync: Boolean): Slider.this.type
- Definition Classes
- Component
- def removeChild(component: Component): Unit
- Definition Classes
- Component
- def removeClass(classToRemove: String): Unit
- Definition Classes
- Component
- def setInterval(fn: Function, interval: Int): Unit
- Definition Classes
- Component
- def setTimeout(fn: Function, timeout: Int): Unit
- Definition Classes
- Component
- def show(): Unit
- Definition Classes
- Component
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toLocaleString(): String
- Definition Classes
- Object
- def toString(): String
- Definition Classes
- AnyRef → Any
- def toggleClass(classToToggle: String, predicate: |[Function, Boolean] = ???): Unit
- Definition Classes
- Component
- def trigger(event: |[Object, String], hash: Object = ???): Unit
- Definition Classes
- Component
- def triggerReady(): Unit
- Definition Classes
- Component
- def valueOf(): Any
- Definition Classes
- Object
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def width(num: |[Int, String], skipListeners: Boolean): Int
- Definition Classes
- Component
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated