Difference between revisions of "Execute Property"
Jump to navigation
Jump to search
(Created page with "It is possible to set an <code>execute</code> property (of type <code>boolean</code>) to a content item to automatically execute it on load. This feature is available since ve...") |
(→Demo) |
||
Line 35: | Line 35: | ||
=== Demo === | === Demo === | ||
− | * Launch via App: https://msx.benzac.de/?start= | + | * Launch via App: https://msx.benzac.de/?start=content:https://msx.benzac.de/info/xp/data/hidden_feature_3.json |
− | * Launch via Demo Page: https://msx.benzac.de/info/?start= | + | * Launch via Demo Page: https://msx.benzac.de/info/?start=content:https://msx.benzac.de/info/xp/data/hidden_feature_3.json |
Revision as of 10:37, 15 January 2021
It is possible to set an execute
property (of type boolean
) to a content item to automatically execute it on load. This feature is available since version 0.1.0. Since version 0.1.120, the execute property can also be set to a menu item to automatically enter the menu data on load. The internal focus
and execute
properties of the entered menu data are also evaluated.
Note: To use this property, the focus
property must be set to true
, otherwise this property is ignored. This property has no effect if the content is loaded via a menu and the corresponding menu item has not set the focus
and execute
property to true
.
Please see following code example.
Example[edit]
Screenshot[edit]
Code[edit]
{
"type": "pages",
"headline": "Videos",
"template": {
"type": "separate",
"layout": "0,0,2,4",
"icon": "msx-white-soft:movie",
"color": "msx-glass"
},
"items": [{
"focus": true,
"execute": true,
"title": "Video 1",
"action": "video:http://msx.benzac.de/media/video1.mp4"
}, {
"title": "Video 2",
"action": "video:http://msx.benzac.de/media/video2.mp4"
}, {
"title": "Video 3",
"action": "video:http://msx.benzac.de/media/video3.mp4"
}]
}