Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Selection

Implementation of the 'selection' markup element. A HTML div element is used to create a selection containing multiple 'block' elements. Only one 'block' is visible. The user can either click on the left or right side of the visible 'block' to select one of the two options. If the click happened, the next 'block' will be showed. For CSS manipulations the following classes are added: lto-selection: the container lto-selection-item: the container where the 'block' is wrapped lto-selection-left: click to choose the left option lto-selection-right: click to choose the right option lto-animation-left: is set when clicking lto-selection-left lto-animation-right: is set when clicking lto-selection-right

see

IRenderable

see

IStackeable

Hierarchy

  • Selection

Implements

Index

Constructors

constructor

Properties

Private animationDuration

animationDuration: number = 300

Private isPublished

isPublished: boolean = false

Private numOfBlocks

numOfBlocks: number

Private selection

selection: HTMLElement

Private spec

Private values

values: Array<any> = []

Methods

publish

  • publish(): void

render

  • render(renderer: IRenderer, isNested: boolean): HTMLElement

Private setFinished

  • setFinished(): void

Generated using TypeDoc