Skip to main content

Toggle

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Toggle(uid, opts?)

Parameters

NameType
uidstring
opts?KeyValue

Overrides

ControlBlock.constructor

Properties

uid

Readonly uid: string

Inherited from

ControlBlock.uid

Methods

close

close(): void

Returns

void

Inherited from

ControlBlock.close


off

off(event, handler): any

Parameters

NameType
eventstring
handlerany

Returns

any

Inherited from

ControlBlock.off


on

on(event, handler): any

Parameters

NameType
eventstring
handlerany

Returns

any

Inherited from

ControlBlock.on


toggleState

toggleState(): void

Flip the state of the toggle

Returns

void