Class type Goog.​Ui.​sliderBase

class type sliderBase = object..end

Inherits


method createDom : unit Js.meth
method decorateInternal : 
'a. (#Dom_html.element as 'a) Js.t -> unit Js.meth
method enterDocument : unit Js.meth

Called when the DOM for the component is for sure in the document. Subclasses should override this method to set this element's role.

method moveThumbs : float -> unit Js.meth

Moves the thumbs by the specified delta as follows

  • as long as both thumbs stay within min,max, both thumbs are moved
  • once a thumb reaches or exceeds min (or max, respectively), it stays
  • at min (or max, respectively). In case both thumbs have reached min (or max), no change event will fire.
method setValueAndExtent : float -> float -> unit Js.meth

Sets the value and extent of the underlying range model. We enforce that getMinimum() <= value <= getMaximum() - extent and getMinExtent <= extent <= getMaximum() - getValue() If this is not satisifed for the given extent, the call is ignored and no CHANGE event fires. This is a utility method to allow setting the thumbs simultaneously and ensuring that only one event fires.

method getMinimum : float Js.t Js.meth

Returns The minimum value.

method setMinimum : float -> unit Js.meth

Sets the minimum number.

method getMaximum : float Js.t Js.meth

Returns The maximum value.

method setMaximum : float -> unit Js.meth

Sets the maximum number.

method getValueThumb : Dom_html.element Js.t Js.meth

Returns The value thumb element.

method getExtentThumb : Dom_html.element Js.t Js.meth

Returns The extent thumb element.

method setOrientation : Js.js_string Js.t -> unit Js.meth

Changes the orientation.

method getOrientation : Js.js_string Js.t Js.meth

Returns the orientation of the slider.

method disposeInternal : unit Js.meth
method getBlockIncrement : float Js.t Js.meth

Returns The amount to increment/decrement for page up/down as well as when holding down the mouse button on the background.

method setBlockIncrement : float -> unit Js.meth

Sets the amount to increment/decrement for page up/down as well as when holding down the mouse button on the background.

method setMinExtent : float -> unit Js.meth

Sets the minimal value that the extent may have.

method getUnitIncrement : float Js.t Js.meth

Returns The amount to increment/decrement for up, down, left and right arrow keys.

method setUnitIncrement : float -> unit Js.meth

Sets the amount to increment/decrement for up, down, left and right arrow keys.

method getStep : float Js.opt Js.meth

Returns The step value used to determine how to round the value.

method setStep : float Js.opt -> unit Js.meth

Sets the step value. The step value is used to determine how to round the value.

method getMoveToPointEnabled : bool Js.t Js.meth

Returns Whether clicking on the backgtround should move directly to that point.

method setMoveToPointEnabled : bool Js.t -> unit Js.meth

Sets whether clicking on the background should move directly to that point.

method getValue : float Js.t Js.meth

Returns The value of the underlying range model.

method setValue : float -> unit Js.meth

Sets the value of the underlying range model. We enforce that getMinimum() <= value <= getMaximum() - getExtent() If this is not satisifed for the given value, the call is ignored and no CHANGE event fires.

method getExtent : float Js.t Js.meth

Returns The value of the extent of the underlying range model.

method setExtent : float -> unit Js.meth

Sets the extent of the underlying range model. We enforce that getMinExtent() <= extent <= getMaximum() - getValue() If this is not satisifed for the given extent, the call is ignored and no CHANGE event fires.

method setVisible : bool Js.t -> unit Js.meth

Change the visibility of the slider. You must call this if you had set the slider's value when it was invisible.