Hierarchy

Constructors

  • Public constructor.

    Parameters

    • Optional options: ViewOptions<WidgetModel, HTMLElement> & {
          options?: any;
      }

    Returns FloatLogSliderView

Properties

$el: any
$slider: any
_parse_value: ((string: string) => number) = parseFloat

Type declaration

    • (string: string): number
    • Converts a string to a floating-point number.

      Parameters

      • string: string

        A string that contains a floating-point number.

      Returns number

_updating_slider: boolean
attributes: Record<string, any>
cid: string
className?: string
collection: Collection<any>
displayed: Promise<WidgetView>

A promise that resolves to the parent view when a child view is displayed.

el: HTMLElement
id?: string
label: HTMLLabelElement
layoutPromise: Promise<any>
luminoWidget: Widget
options: any
readout: HTMLDivElement
slider_container: HTMLElement
stylePromise: Promise<any>
tagName: string

Accessors

  • get pWidget(): Widget
  • Deprecated

    Use luminoWidget instead (Since 8.0).

    Returns Widget

Methods

  • Parameters

    • selector: string

    Returns JQuery<HTMLElement>

  • Parameters

    • tagName: string

    Returns void

  • Parameters

    • attrs: ObjectHash

    Returns void

  • Parameters

    • el: HTMLElement

    Returns void

  • Create msg callbacks for a comm msg.

    Returns ICallbacks

  • Create and promise that resolves to a child view of a given model

    Type Parameters

    • VT extends DOMWidgetView<VT> = DOMWidgetView

    Parameters

    • child_model: DOMWidgetModel
    • Optional options: any

    Returns Promise<VT>

  • Type Parameters

    • VT extends WidgetView<VT> = WidgetView

    Parameters

    • child_model: WidgetModel
    • Optional options: any

    Returns Promise<VT>

  • Make an event delegation handler for the given eventName and selector and attach it to this.el. If selector is empty, the listener will be bound to this.el. If not, a new handler that will recursively traverse up the event target's DOM hierarchy looking for a node that matches the selector. If one is found, the event's delegateTarget property is set to it and the return the result of calling bound listener with the parameters given to the handler.

    This does not properly handle selectors for things like focus and blur (see https://github.com/jquery/jquery/blob/7d21f02b9ec9f655583e898350badf89165ed4d5/src/event.js#L442 for some similar exceptional cases).

    Parameters

    • eventName: string
    • listener: Function

    Returns FloatLogSliderView

  • Parameters

    • eventName: string
    • selector: string
    • listener: Function

    Returns FloatLogSliderView

  • Events hash or a method returning the events hash that maps events/selectors to methods on your View. For assigning events as object hash, do it like this: this.events = { "event:selector": callback, ... }; That works only if you set it in the constructor or the initialize method.

    Returns {
        [e: string]: string;
    }

    • [e: string]: string
  • this handles the entry of text into the contentEditable label first, the value is checked if it contains a parseable value then it is clamped within the min-max range of the slider finally, the model is updated if the value is to be changed

    if any of these conditions are not met, the text is reset

    Returns void

  • Handle message sent to the front end.

    Used to focus or blur the widget.

    Parameters

    • content: any

    Returns void

  • Public constructor

    Parameters

    • parameters: IInitializeParameters<WidgetModel>

    Returns void

  • Convert from value to exponent

    Returns

    the log-value between the min/max exponents

    Parameters

    • value: number

      the widget value

    Returns number

  • Parameters

    • Optional eventName: null | string
    • Optional callback: null | EventHandler
    • Optional context: any

    Returns FloatLogSliderView

  • For use with views as ES classes. If you define a preinitialize method, it will be invoked when the view is first created, before any instantiation logic is run.

    See

    https://backbonejs.org/#View-preinitialize

    Parameters

    • Optional options: ViewOptions<WidgetModel, HTMLElement>

    Returns void

  • Recreate/Regenerate a slider object noUiSlider does not support in-place mutation of the orientation state. We therefore need to destroy the current instance and create a new one with the new properties. This is handled in a separate function and has a dedicated event handler.

    Parameters

    • e: any

    Returns void

  • Send a custom msg associated with this view.

    Parameters

    • content: {}
      • Optional buffers: ArrayBuffer[] | ArrayBufferView[]

      Returns void

    • Parameters

      • layout: LayoutModel
      • Optional oldLayout: LayoutModel

      Returns void

    • Parameters

      • style: StyleModel
      • Optional oldStyle: StyleModel

      Returns void

    • Parameters

      • class_map: Dict<string[]>
      • trait_name: string
      • Optional el: HTMLElement

      Returns void

    • Returns void

    • Parameters

      • Optional eventName: string
      • Optional callback: EventHandler
      • Optional context: any

      Returns FloatLogSliderView

    • Update the DOM classes applied to an element, default to this.el.

      Parameters

      • old_classes: string[]
      • new_classes: string[]
      • Optional el: HTMLElement

      Returns void

    • Update the DOM classes applied to the widget based on a single trait's value.

      Given a trait value classes map, this function automatically handles applying the appropriate classes to the widget element and removing classes that are no longer valid.

      Parameters

      class_map: dictionary Dictionary of trait values to class lists. Example: { success: ['alert', 'alert-success'], info: ['alert', 'alert-info'], warning: ['alert', 'alert-warning'], danger: ['alert', 'alert-danger'] }; trait_name: string Name of the trait to check the value of. el: optional DOM element handle, defaults to this.el Element that the classes are applied to.

      Parameters

      • class_map: Dict<string[]>
      • trait_name: string
      • Optional el: HTMLElement

      Returns void

    • Do not use, prefer TypeScript's extend functionality.

      Parameters

      • properties: any
      • Optional classProperties: any

      Returns any

    Generated using TypeDoc