APIs

Show:

This generic class manages a set of elements all designed to provide user with UI for font selection

Constructor

FontSelector

() Object

Returns:

Object:

instantiated FontSelector

Methods

_delegateAnnounceChange

()

Announce changes to font props

_initColorSelector

()

Initialize the minicolors UI widget under this created instance

_initFontSelector

(
  • i_playerData
)
Number

Font selection

Parameters:

  • i_playerData Number

Returns:

Number:

Unique clientId.

_onClick

(
  • e
)

Catch all event for any UI that is clicked within this view so we can deal with each action as per the target firing the event

Parameters:

  • e Event

_onColorSelected

(
  • i_color
)

On new color selected by minicolors

Parameters:

  • i_color String

_onFontSelected

(
  • i_target
)

On new font selected by drop down

Parameters:

  • i_target Element

events

()

Global event catcher for UI buttons / selection

fontList

()

Build list of available fonts to chose from

i_config

()

Initialize the font size spinner UI selector

i_target

()

Deselect all font alignments buttons so all are unpressed

initialize

()

Init the ChannelList component and enable sortable channels UI via drag and drop operations.

render

(
  • i_config
)

Redraw UI with updated config data provided in json format

Parameters:

  • i_config Object

setConfig

(
  • i_config
)

Set the configuration data for this font selector component

Parameters:

  • i_config Object