Class TJSInput
Hierarchy
- SvelteComponent<
{ input?: any; type?: any },
{ click: any; contextmenu: any; press: any } & {
[evt: string]: CustomEvent<any>;
},
{},
>- TJSInput (View Summary)
Indexable
-
[prop: string]: any
Constructors
constructor
-
Parameters
- options: ComponentConstructorOptions<{ input?: any; type?: any }>
Returns TJSInput
Methods
$destroy
-
Returns void
$on
-
$on<K extends string>(
type: K,
callback: (
e: (
{ click: any; contextmenu: any; press: any } & {
[evt: string]: CustomEvent<any>;
}
)[K],
) => void,
): () => voidType Parameters
- K extends string
Parameters
- type: K
- callback: (
e: (
{ click: any; contextmenu: any; press: any } & {
[evt: string]: CustomEvent<any>;
}
)[K],
) => void
Returns () => void
Provides a generic "input" component that creates the specific input component based on 'type'. If no
typeproperty is available in the input objecttextis the default.You may optionally define a label either as
input.labelor through thelabelprop as a string. 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.The available
typeprops include:CSS Variables
The following CSS variables control the associated styles with the default values: