Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ModuleLabel

Module showing labels, that are displaying current value as text (by default beneath values).

  • draggable, but not clickable
  • labels merge, when overlapping each-other
  • merged labels are moveable by dragging individual values
  • labels never exceed parent, sticking to one of it's sides

Uses .jsr_label CSS class for each label. Hidden labels use .is-hidden class.

note

At any point of time, all possible label combinations (single and merged labels) are rendered. This is necessary for simpler code, but also for performance reasons. Merging labels is complex topic. Those labels, that are computed to not be visible, have .is-hidden class appended.

Hierarchy

Index

Constructors

Methods

  • destroy(): void
  • Tells, how the module should be destroyed. This usually involves removing all created HTML elements, and event handlers, that were attached to other than removed elements.

    Returns void

  • initView(): void
  • Called once, when JSR is ready to append this module to HTML DOM. All element creation and event handler should be bind here.

    Returns void

Generated using TypeDoc