Class TJSFileSlotButton
Hierarchy
- SvelteComponent<
TJSFileSlotButton.Props,
TJSFileSlotButton.Events,
TJSFileSlotButton.Slots,
>- TJSFileSlotButton (View Summary)
Indexable
- [prop: string]: any
Index
Constructors
Methods
Constructors
constructor
- new TJSFileSlotButton(
options: ComponentConstructorOptions<TJSFileSlotButton.Props>,
): TJSFileSlotButton Parameters
Returns TJSFileSlotButton
Methods
$destroy
$on
- $on<K extends string>(
type: K,
callback: (e: TJSFileSlotButton.Events[K]) => void,
): () => void Type Parameters
Parameters
- type: K
- callback: (e: TJSFileSlotButton.Events[K]) => void
Returns () => void
$set
- $set(props: Partial<TJSFileSlotButton.Props>): void
Parameters
- props: Partial<TJSFileSlotButton.Props>
Returns void
Provides a pre-configured slotted button interfacing w/ the Foundry file picker. You may assign a child component that obtains the
urlString
store.Please see FVTTFilePickerBrowseOptions for the
pickerOptions
prop. Please see TJSSlotButton 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.