Class TJSMediaContent
Hierarchy
- SvelteComponent<
TJSMediaContent.Props,
TJSMediaContent.Events,
TJSMediaContent.Slots,
>- TJSMediaContent (View Summary)
Indexable
- [prop: string]: any
Index
Constructors
Methods
Constructors
constructor
- new TJSMediaContent(
options: ComponentConstructorOptions<TJSMediaContent.Props>,
): TJSMediaContent Parameters
- options: ComponentConstructorOptions<TJSMediaContent.Props>
Returns TJSMediaContent
Methods
$destroy
$on
- $on<K extends string>(
type: K,
callback: (e: CustomEvent<any>) => void,
): () => void Type Parameters
Parameters
- type: K
- callback: (e: CustomEvent<any>) => void
Returns () => void
$set
- $set(props: Partial<TJSMediaContent.Props>): void
Parameters
- props: Partial<TJSMediaContent.Props>
Returns void
Provides an initial implementation to display image or video content from a given file path.
You can either set the
url
prop or use TJSFileSlotButton and embed TJSMediaContent as a child. Aurl
context / store will be examined if it exists to obtain a file path to load.The following CSS variables control the associated styles with the default values: