Class TJSFileSlotButton
Hierarchy
- SvelteComponent<
{
button?: object;
pickerOptions?: FVTTFilePickerBrowseOptions;
urlString?: string;
[x: string]: any;
},
{ "filepicker:urlString": CustomEvent<any> } & {
[evt: string]: CustomEvent<any>;
},
{ default: {} },
>- TJSFileSlotButton (View Summary)
Indexable
-
[prop: string]: any
Constructors
constructor
-
new TJSFileSlotButton(
options: ComponentConstructorOptions<
{
button?: object;
pickerOptions?: FVTTFilePickerBrowseOptions;
urlString?: string;
[x: string]: any;
},
>,
): TJSFileSlotButtonParameters
- options: ComponentConstructorOptions<
{
button?: object;
pickerOptions?: FVTTFilePickerBrowseOptions;
urlString?: string;
[x: string]: any;
},
>
Returns TJSFileSlotButton
- options: ComponentConstructorOptions<
Methods
$destroy
-
Returns void
$on
-
$on<K extends string>(
type: K,
callback: (
e: (
{ "filepicker:urlString": CustomEvent<any> } & {
[evt: string]: CustomEvent<any>;
}
)[K],
) => void,
): () => voidType Parameters
- K extends string
Parameters
- type: K
- callback: (
e: (
{ "filepicker:urlString": CustomEvent<any> } & {
[evt: string]: CustomEvent<any>;
}
)[K],
) => void
Returns () => void
Provides a pre-configured slotted button interfacing w/ the Foundry file picker. You may assign a child component that obtains the
urlStringstore.Please see FVTTFilePickerBrowseOptions for the
pickerOptionsprop. Please see TJSSlotButton for the button component / CSS variable support.This component provides one way binding by default. You may explicitly bind to the
urlStringprop to create a two-way binding.