Skip to main content

Class: BlazeHeading

ui/heading.BlazeHeading

Hierarchy

  • BlazeText<HTMLHeadingElement>

    โ†ณ BlazeHeading

Constructors

constructor

โ€ข new BlazeHeading(text, level?, size?)

Create a BlazeHeading.

Parameters

NameTypeDefault valueDescription
textstringundefinedThe heading's text
levelnumber1The heading level (1 - 6)
size?numberundefinedThe heading's font size in rem units, if none is given then size will be auto

Overrides

BlazeText.constructor

Defined in

src/ui/heading.ts:14

Properties

bold

โ€ข bold: boolean

Inherited from

BlazeText.bold

Defined in

src/ui/text.ts:20


element

โ€ข Readonly element: HTMLHeadingElement | HTMLParagraphElement

Inherited from

BlazeText.element

Defined in

src/ui/element.ts:9


keys

โ€ข Readonly keys: KeyboardHandler

Inherited from

BlazeText.keys

Defined in

src/ui/element.ts:11


mouse

โ€ข Readonly mouse: MouseHandler

Inherited from

BlazeText.mouse

Defined in

src/ui/element.ts:10


size

โ€ข size: number

Inherited from

BlazeText.size

Defined in

src/ui/text.ts:19


style

โ€ข style: TextStyle

Inherited from

BlazeText.style

Defined in

src/ui/text.ts:21


touch

โ€ข Readonly touch: TouchHandler

Inherited from

BlazeText.touch

Defined in

src/ui/element.ts:12

Methods

applyStyles

โ–ธ applyStyles(): void

Applies the size, bold, and style variables to the text's dom element.

Returns

void

Inherited from

BlazeText.applyStyles

Defined in

src/ui/text.ts:73


getText

โ–ธ getText(): string

Gets the element's text.

Returns

string

The element's text

Inherited from

BlazeText.getText

Defined in

src/ui/text.ts:120


setText

โ–ธ setText(text): void

Sets the element's text.

Parameters

NameTypeDescription
textstringThe element's text

Returns

void

Inherited from

BlazeText.setText

Defined in

src/ui/text.ts:110