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