Class: BlazeDetails
ui/details.BlazeDetails
Hierarchy
BlazeElement
<HTMLDetailsElement
>โณ
BlazeDetails
Constructors
constructor
โข new BlazeDetails(summary
, content
, size?
)
Create a BlazeDetails.
Parameters
Name | Type | Description |
---|---|---|
summary | string | The detail's summary text |
content | HTMLElement | An {@link HTMLElement} to place inside the details tag |
size? | number | The summary tag's font size in rem units, if none is given then size will be auto |
Overrides
Defined in
src/ui/details.ts:18
Properties
content
โข content: HTMLElement
Defined in
src/ui/details.ts:9
element
โข Readonly
element: HTMLDetailsElement
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
summary
โข summary: HTMLElement
Defined in
src/ui/details.ts:7
summaryText
โข summaryText: BlazeHeading
Defined in
src/ui/details.ts:8
touch
โข Readonly
touch: TouchHandler
Inherited from
Defined in
src/ui/element.ts:12
Methods
setSize
โธ setSize(size
): void
Sets the summary tag's font size.
Parameters
Name | Type | Description |
---|---|---|
size | number | The summary tag's new font size in rem units |
Returns
void
Defined in
src/ui/details.ts:38