Class TJSMediaContent
Hierarchy
- SvelteComponent<TJSMediaContent.Props, TJSMediaContent.Events, TJSMediaContent.Slots>
- TJSMediaContent (view full)
Index
Constructors
Methods
Constructors
constructor
- new TJSMedia
Content (options): TJSMediaContent Parameters
- options: ComponentConstructorOptions<TJSMediaContent.Props>
Returns TJSMediaContent
Methods
$destroy
$on
- $on<K>(type, callback): (() => void)
Type Parameters
Parameters
- type: K
- callback: ((e: CustomEvent<any>) => void)
- (e): void
Parameters
- e: CustomEvent<any>
Returns void
Returns (() => void)
- (): void
Returns void
$set
- $set(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: