Difference between revisions of "Content Item Object"
Line 341: | Line 341: | ||
Indicates if the content image is preloaded to make it directly visible. By default, images are loaded on the fly. | Indicates if the content image is preloaded to make it directly visible. By default, images are loaded on the fly. | ||
− | '''Note: For preloaded images, the <code>imageFiller</code> property can not be set to <code>"fit"</code>, <code>"cover"</code>, or <code>"smart"</code>.''' | + | '''Note: For preloaded images, the <code>imageFiller</code> property can not be set to <code>"fit"</code>, <code>"cover"</code>, or <code>"smart"</code>. Since version 0.1.155, this property can be set to <code>false</code> to disable the auto preload feature for reload/replace actions.''' |
|- | |- | ||
| <code>imageLabel</code> || <code>string</code> || <code>null</code> || No || data-sort-value=0|0.1.0 || | | <code>imageLabel</code> || <code>string</code> || <code>null</code> || No || data-sort-value=0|0.1.0 || |
Revision as of 21:17, 5 March 2024
{
"id": "content_item_id",
"type": "default",
"key": "red",
"layout": "0,0,1,1",
"area": "0,0,12,6",
"offset": "0,0,0,0",
"display": true,
"enable": true,
"focus": false,
"execute": false,
"enumerate": false,
"compress": true,
"decompress": false,
"shortcut": true,
"group": "Item Group",
"color": "msx-glass",
"title": "Item Title",
"titleHeader": "Item Title Header",
"titleFooter": "Item Title Footer",
"label": "Item Label",
"icon": "blank",
"iconSize": "medium",
"headline": "Item Headline",
"text": "Item Text",
"alignment": "left",
"truncation": "headline",
"centration": "text",
"tag": "Item Tag",
"tagColor": "msx-red",
"badge": "Item Badge",
"badgeColor": "msx-green",
"stamp": "Item Stamp",
"stampColor": "msx-yellow",
"progress": -1,
"progressColor": "msx-blue",
"wrapperColor": "msx-gray",
"image": "http://link.to.image",
"imageFiller": "default",
"imageWidth": -1,
"imageHeight": -1,
"imageOverlay": -1,
"imagePreload": false,
"imageLabel": "Image Label",
"imageColor": "msx-black",
"imageScreenFiller": "fit",
"imageBoundary": false,
"playerLabel": "Player Label",
"background": "http://link.to.image",
"extensionIcon": "blank",
"extensionLabel": "Extension Label",
"action": null,
"data": null,
"properties": null,
"live": null,
"selection": null,
"options": null
}
Property | Type | Default Value | Mandatory | Since Version | Description |
---|---|---|---|---|---|
id |
string |
null |
No | 0.1.0 |
The ID of the content item. This property can be used to identify the item. The ID must be unique for the content data and only consist of letters, numbers, and the special characters |
type |
string |
"default" |
No | 0.1.0 |
The type of the content item.
Note: Please note that a content page must have at least one selectable item in order to be displayed (e.g. a content page that only contains items of type |
key |
string |
null |
No | 0.1.97 |
The key that is used to assign a keyboard key (or a remote control button) to the content item action. This property is part of the hidden features. For more information, please see Key Property. |
layout |
string |
null |
Only for the template object and non-templated items | 0.1.0 |
The layout of the content item in format Note: The grid size is 12x6 (or 8x6 for panels). It is not possible to register multiple items on the same position, however, it is possible to overlap items (e.g. to add background or foreground items of type The All values are absolute integers. Please use the |
area |
string |
null |
No | 0.1.110 |
The area used for created content items in the format The All values are absolute integers. Note: If this property is set, the possible |
offset |
string |
null |
No | 0.1.0 |
The offset of the content item in format The All values are relative floating point numbers. Note: The offset values have been increased in version 0.1.110. In previous versions, each value can only go from |
display |
boolean |
true |
No | 0.1.0 |
Indicates if the content item is displayed. This property can be used to temporarily remove items. |
enable |
boolean |
true |
No | 0.1.0 |
Indicates if the content item is enabled. This property can be used to temporarily disable items. |
focus |
boolean |
false |
No | 0.1.0 |
Indicates if the content item is focused. This property can be used to set the focus to a specific item. Note: If this property is set to |
execute |
boolean |
false |
No | 0.1.0 |
Indicates if the content item is automatically executed on load. This property is part of the hidden features. For more information, please see Execute Property. |
enumerate |
boolean |
true |false |
No | 0.1.0 |
Indicates if the content item is enumerated. Enumerated items can be executed in a row (e.g. to start a playlist or a slideshow). The default value is |
compress |
boolean |
true |
No | 0.1.123 |
Indicates if font size adjustments are performed when the content is compressed. Note: This property is ignored if the corresponding content root object has not set the This property is part of the hidden features. For more information, please see Compress Property. |
decompress |
boolean |
false |
No | 0.1.155 |
This property can only be used inside the template object and is used to decompress compressed content items. This means that the standard layout grid size (12x6 or 8x6 for panels) is used. This allows you to use compressed header/footer/overlay/underlay pages with uncompressed content items. Note: This property is ignored if the corresponding content root object has not set the |
shortcut |
boolean |
true |
No | 0.1.132 |
Indicates if the content item can be used as shortcut if it is used inside the This property is part of the hidden features. For more information, please see Option Shortcut. |
group |
string |
null |
No | 0.1.92 |
The group label of the content item if it is enumerated. This label is shown in the content headline after the enumeration info. If the group label starts with the string Note: Each group has its own enumeration counter. Therefore, if a group item is executed, only the related group items are executed in a row. To use this property, the This property supports Inline Expressions. |
color |
string |
null |
No | 0.1.0 |
The background color of the content item. Please see Colors for possible values. |
title |
string |
null |
No | 0.1.0 |
The title of the content item that is positioned in the lower left corner. Note: Since version 0.1.82, you can change the alignment of this content with the This property supports Inline Expressions. |
titleHeader |
string |
null |
No | 0.1.0 |
The title header of the content item that is positioned in the lower left corner. Note: Since version 0.1.82, you can change the alignment of this content with the This property supports Inline Expressions. |
titleFooter |
string |
null |
No | 0.1.0 |
The title footer of the content item that is positioned in the lower left corner. Note: Since version 0.1.82, you can change the alignment of this content with the This property supports Inline Expressions. |
label |
string |
null |
No | 0.1.0 |
The label of the content item that is positioned in the bottom center or on the left side if the item type is |
icon |
string |
null |
No | 0.1.0 |
The icon of the content item that is positioned in the center or on the left side if the item type is |
iconSize |
string |
"medium" |
No | 0.1.0 |
The size of the content icon.
Note: This property is ignored for content items of type |
headline |
string |
null |
No | 0.1.0 |
The headline of the content item that is positioned in the upper left corner. Note: Since version 0.1.82, you can change the alignment of this content with the This property supports Inline Expressions. |
text |
string |array |
null |
No | 0.1.0 |
The text of the content item that is positioned in the upper left corner. By default, the text is indicated as single Note: Since version 0.1.82, you can change the alignment of this content with the This property supports Inline Expressions. |
alignment |
string |
"left" |
No | 0.1.82 |
The content alignment of the properties
Since version 0.1.97, you can also set separate alignments for the title (i.e.
Since version 0.1.146, you can also set the alignment of the badge and the stamp.
If you want to set multiple alignments, please use the separator |
truncation |
string |
null |
No | 0.1.128 |
Indicates which content text properties (i.e. |
centration |
string |
null |
No | 0.1.146 |
Indicates which of the following content properties should be centered vertically.
By default, these properties are either top or bottom aligned. If you want to indicate multiple properties, please use the separator Note: Please note that properties like |
tag |
string |
null |
No | 0.1.0 |
The tag of the content item that is positioned in the upper right corner. This property supports Inline Expressions. Note: For items of type |
tagColor |
string |
null |
No | 0.1.0 |
The background color of the content tag. Please see Colors for possible values. |
badge |
string |
null |
No | 0.1.0 |
The badge of the content item that is positioned in the upper left corner. This property supports Inline Expressions. Note: For items of type |
badgeColor |
string |
null |
No | 0.1.0 |
The background color of the content badge. Please see Colors for possible values. |
stamp |
string |
null |
No | 0.1.146 |
The stamp of the content item that is positioned in the lower right corner. This property supports Inline Expressions. Note: For items of type |
stampColor |
string |
null |
No | 0.1.146 |
The background color of the content stamp. Please see Colors for possible values. |
progress |
number |
-1 |
No | 0.1.70 |
The progress of the content item that is shown as bar at the bottom. The value is a relative floating point number and can go from |
progressColor |
string |
null |
No | 0.1.70 |
The color of the progress bar. Please see Colors for possible values. |
wrapperColor |
string |
null |
No | 0.1.70 |
The color of the content wrapper (e.g. the color of the image space within the content item). To use this property, the content must be wrapped (e.g. the |
image |
string |
null |
No | 0.1.0 |
The image of the content item. The properties |
imageFiller |
string |
"default" |
No | 0.1.0 |
The filler type of the content image.
|
imageWidth |
number |
-1 |
No | 0.1.0 |
The width of the content image. This property can be used to reduce the width of the image and to position the text on the right side of it. The value is a relative floating point number and can go from |
imageHeight |
number |
-1 |
No | 0.1.0 |
The height of the content image. This property can be used to reduce the height of the image. The value is a relative floating point number and can go from |
imageOverlay |
number |
-1 |
No | 0.1.0 |
The overlay of the content image. This property can be used to explicitly set or remove the overlay of the image. The overlay is used to darken the lower part of the image to make the titles (i.e.
Since version 0.1.97, you can also set an inverted overlay to darken the upper part of the image to make the text (i.e.
|
imagePreload |
boolean |
false |
No | 0.1.58 |
Indicates if the content image is preloaded to make it directly visible. By default, images are loaded on the fly. Note: For preloaded images, the |
imageLabel |
string |
null |
No | 0.1.0 |
The label of the content image that is used inside the slideshow. This property is only used if the content action is |
imageColor |
string |
null |
No | 0.1.6 |
The background color of the content image that is used inside the slideshow. This property is only used if the content action is |
imageScreenFiller |
string |
"fit" |
No | 0.1.6 |
The filler type of the content image that is used inside the slideshow. This property is only used if the content action is |
imageBoundary |
boolean |
false |
No | 0.1.146 |
Indicates if specific content properties (i.e. Note: Please note that the named content properties are already bound to the image area for items of type |
playerLabel |
string |
null |
No | 0.1.0 |
The label of the content video/audio that is used inside the player. This property is only used if the content action is |
extensionIcon |
string |
null |
No | 0.1.0 |
The extension icon. This property is only available for content items of type |
extensionLabel |
string |
null |
No | 0.1.0 |
The extension label. This property is only available for content items of type |
action |
string |
null |
No | 0.1.0 |
The action of the content item that is performed if the item is executed. If this property is not set and the item is executed, an info message with "No action available." is displayed. Please see Actions for possible values. |
data |
object |
null |
No | 0.1.0 |
The additional data of the content item that is used if the item is executed. Please see Actions for possible values. |
properties |
object |
null |
No | 0.1.58 |
Extended properties for special use cases. Each property is a key-value pair of type |
live |
object |
null |
No | 0.1.70 |
A special live object to periodically update content items (e.g. with live data, playback progress, etc.). Please see Live Object for the data structure. |
selection |
object |
null |
No | 0.1.110 |
A special selection object to specify the behavior of the content item if it is selected (i.e. if it has the focus). Please see Selection Object for the data structure. |
options |
object |
null |
No | 0.1.120 |
A special page object that is displayed in a panel if the content item is selected and the menu button is pressed. The availability of options for the current selected item is indicated in the lower right corner of the content screen. This property is ignored if the content is displayed in a panel. Please see Content Page Object for the data structure. Since version 0.1.130, you can also set a Content Root Object as options. |
Related Hidden Features[edit]
- Execute Property
- Focus Separator
- Hide Images
- Number Inline Expressions
- Color Inline Expressions
- Key Property
- Large Offsets
- Dictionary Inline Expressions
- Compress Property
- Resolve Action
- Option Shortcut
- Advanced Text & Image