Class TJSInputText
Hierarchy
- SvelteComponent<
{
efx?: any;
enabled?: any;
input?: any;
label?: any;
options?: any;
placeholder?: any;
readonly?: any;
store?: any;
storeIsValid?: any;
styles?: any;
type?: any;
},
{ pointerdown: PointerEvent } & { [evt: string]: CustomEvent<any> },
{},
>- TJSInputText (View Summary)
Indexable
-
[prop: string]: any
Constructors
constructor
-
new TJSInputText(
options: ComponentConstructorOptions<
{
efx?: any;
enabled?: any;
input?: any;
label?: any;
options?: any;
placeholder?: any;
readonly?: any;
store?: any;
storeIsValid?: any;
styles?: any;
type?: any;
},
>,
): TJSInputTextParameters
- options: ComponentConstructorOptions<
{
efx?: any;
enabled?: any;
input?: any;
label?: any;
options?: any;
placeholder?: any;
readonly?: any;
store?: any;
storeIsValid?: any;
styles?: any;
type?: any;
},
>
Returns TJSInputText
- options: ComponentConstructorOptions<
Methods
$destroy
-
Returns void
$on
-
$on<K extends string>(
type: K,
callback: (
e: (
{ pointerdown: PointerEvent } & { [evt: string]: CustomEvent<any> }
)[K],
) => void,
): () => voidType Parameters
- K extends string
Parameters
- type: K
- callback: (
e: ({ pointerdown: PointerEvent } & { [evt: string]: CustomEvent<any> })[K],
) => void
Returns () => void
A generic input type has issues w/ 2-way binding w/ Svelte. https://github.com/sveltejs/svelte/issues/3921
A "hack" is used to set the type on the input element:
{...{ type }}Only use this component for text inputs presently. More work to come.
CSS Variables: