The Viewer component is a component for displaying files.
The following formats are supported: image/jpeg, image/png, text/plain, text/html, application/pdf, application/json.
The following CSS classes are used for each supported format type for the component:
-
The CSS class image jpeg is used for image/jpeg.
-
The CSS class image png is used for image/png.
-
The CSS class text plain is used for text/plain.
-
The CSS class text html is used for text/html.
-
The CSS class pdf is used for application/pdf.
-
The CSS class json is used for application/json.
Note: The browser preview is used to display PDF files.
Properties
|
Type |
Name |
Description |
|---|---|---|
|
BOOLEAN |
Visibility |
Indicates whether the component is visible. |
|
INPUT |
Class |
Specifies additional CSS classes of the components. |
|
SELECT |
content-type |
Specifies the content type of the file to be displayed. |