Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FontFamilyPanel

Font family selection toolbox panel.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new FontFamilyPanel(title: string, fonts: string[], currentFont?: string, icon?: 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).

    Returns FontFamilyPanel

Properties

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.

Methods

getUi

  • getUi(): HTMLDivElement

Generated using TypeDoc