Class TJSFileButton
Hierarchy
- SvelteComponent<TJSFileButton.Props, TJSFileButton.Events, TJSFileButton.Slots>
- TJSFileButton (view full)
Index
Constructors
Methods
Constructors
constructor
- new TJSFile
Button (options): TJSFileButton Parameters
- options: ComponentConstructorOptions<TJSFileButton.Props>
Returns TJSFileButton
Methods
$destroy
$on
- $on<K>(type, callback): (() => void)
Type Parameters
Parameters
- type: K
- callback: ((e: TJSFileButton.Events[K]) => void)
- (e): void
Parameters
- e: TJSFileButton.Events[K]
Returns void
Returns (() => void)
- (): void
Returns void
$set
- $set(props): void
Parameters
- props: Partial<TJSFileButton.Props>
Returns void
Provides a pre-configured icon button interfacing w/ the Foundry file picker.
Please see FVTTFilePickerBrowseOptions for the
pickerOptions
prop. Please see TJSButton for the button component / CSS variable support.This component provides one way binding by default. You may explicitly bind to the
urlString
prop to create a two-way binding.