Class TJSInputText
Hierarchy
- SvelteComponent<TJSInputText.Props, TJSInputText.Events, TJSInputText.Slots>
- TJSInputText (view full)
Index
Constructors
Methods
Constructors
constructor
- new TJSInput
Text (options): TJSInputText Parameters
- options: ComponentConstructorOptions<TJSInputText.Props>
Returns TJSInputText
Methods
$destroy
$on
- $on<K>(type, callback): (() => void)
Type Parameters
Parameters
- type: K
- callback: ((e: TJSInputText.Events[K]) => void)
- (e): void
Parameters
- e: TJSInputText.Events[K]
Returns void
Returns (() => void)
- (): void
Returns void
$set
- $set(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: