Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FontFamilyPanel

Font family selection toolbox panel.

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new FontFamilyPanel(title: string, fonts: string[], currentFont?: string, icon?: string, id?: string): FontFamilyPanel
  • Creates a font family toolbox panel.

    Parameters

    • title: string

      panel title.

    • fonts: string[]

      available font families.

    • Optional currentFont: string

      currently selected font family.

    • Optional icon: string

      panel button icon (SVG image markup).

    • Optional id: string

      panel ID.

    Returns FontFamilyPanel

Properties

Protected Optional _id

_id: string

icon

icon: string

Panel button icon as an SVG markup.

Optional onFontChanged

onFontChanged: FontChangeHandler

Handler for the font family change event.

title

title: string

Panel name/title.

uiStyleSettings

uiStyleSettings: IStyleSettings

UI style settings for colors, etc.

Accessors

id

  • get id(): string | undefined

Methods

getUi

  • getUi(): HTMLDivElement

Generated using TypeDoc