Class TJSSlotLabel
Hierarchy
- SvelteComponent<
{ enabled?: boolean; isPointer?: boolean; label?: any },
{ [evt: string]: CustomEvent<any> },
{ default: {} },
>- TJSSlotLabel (View Summary)
Indexable
-
[prop: string]: any
Constructors
constructor
-
new TJSSlotLabel(
options: ComponentConstructorOptions<
{ enabled?: boolean; isPointer?: boolean; label?: any },
>,
): TJSSlotLabelParameters
- options: ComponentConstructorOptions<
{ enabled?: boolean; isPointer?: boolean; label?: any },
>
Returns TJSSlotLabel
- options: ComponentConstructorOptions<
Methods
$destroy
-
Returns void
$on
-
Type Parameters
- K extends string
Parameters
- type: K
- callback: (e: CustomEvent<any>) => void
Returns () => void
Provides a slotted component wrapped in a label element. The
labelprop can either be a string or a Svelte configuration object to be used as the label text. The label element usesdisplay: contentswhich ignores the label element and lays out the children as if the label element does not exist which is perfect for a grid layout. Optionally, there are CSS variables available to change thedisplayand additional flex layout configuration possibilities.CSS Variables
The following CSS variables control the associated styles with the default values: