Class TJSMediaContent
                 
                    
                  Hierarchy
              
              - SvelteComponent<
 TJSMediaContent.Props,
 TJSMediaContent.Events,
 TJSMediaContent.Slots,
 >- TJSMediaContent (View Summary)
 
Indexable
- [prop: string]: any
Index
Constructors
Methods
Constructors
constructor
- Parameters- options: ComponentConstructorOptions<TJSMediaContent.Props>
 - Returns TJSMediaContent
Methods
$destroy
- Returns void
$on
- Type Parameters- K extends string
 - Parameters- type: K
- callback: (e: CustomEvent<any>) => void
 - Returns () => void
Provides an initial implementation to display image or video content from a given file path.
You can either set the
urlprop or use TJSFileSlotButton and embed TJSMediaContent as a child. Aurlcontext / 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: