Class TJSInputText
Hierarchy
- SvelteComponent<TJSInputText.Props, TJSInputText.Events, TJSInputText.Slots>
- TJSInputText (View Summary)
Indexable
- [prop: string]: any
Index
Constructors
Methods
Constructors
constructor
- new TJSInputText(
options: ComponentConstructorOptions<TJSInputText.Props>,
): TJSInputText Parameters
- options: ComponentConstructorOptions<TJSInputText.Props>
Returns TJSInputText
Methods
$destroy
$on
- $on<K extends string>(
type: K,
callback: (e: TJSInputText.Events[K]) => void,
): () => void Type Parameters
Parameters
- type: K
- callback: (e: TJSInputText.Events[K]) => void
Returns () => void
$set
- $set(props: Partial<TJSInputText.Props>): void
Parameters
- props: Partial<TJSInputText.Props>
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: