Class: BlazeHeading
ui/heading.BlazeHeading
Hierarchy
BlazeText<HTMLHeadingElement>โณ
BlazeHeading
Constructors
constructor
โข new BlazeHeading(text, level?, size?)
Create a BlazeHeading.
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
text | string | undefined | The heading's text |
level | number | 1 | The heading level (1 - 6) |
size? | number | undefined | The heading's font size in rem units, if none is given then size will be auto |
Overrides
Defined in
src/ui/heading.ts:14
Properties
bold
โข bold: boolean
Inherited from
Defined in
src/ui/text.ts:20
element
โข Readonly element: HTMLHeadingElement | HTMLParagraphElement
Inherited from
Defined in
src/ui/element.ts:9
keys
โข Readonly keys: KeyboardHandler
Inherited from
Defined in
src/ui/element.ts:11
mouse
โข Readonly mouse: MouseHandler
Inherited from
Defined in
src/ui/element.ts:10
size
โข size: number
Inherited from
Defined in
src/ui/text.ts:19
style
โข style: TextStyle
Inherited from
Defined in
src/ui/text.ts:21
touch
โข Readonly touch: TouchHandler
Inherited from
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
Defined in
src/ui/text.ts:73
getText
โธ getText(): string
Gets the element's text.
Returns
string
The element's text
Inherited from
Defined in
src/ui/text.ts:120
setText
โธ setText(text): void
Sets the element's text.
Parameters
| Name | Type | Description |
|---|---|---|
text | string | The element's text |
Returns
void
Inherited from
Defined in
src/ui/text.ts:110