Difference between revisions of "Settings Menu Item"

From MSX - Wiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
It is possible to add the application settings to your menu by setting the <code>type</code> property of a menu item to <code>"settings"</code>. This feature is available since version '''0.1.0'''. Please see following code example.
+
It is possible to add the application settings to your menu by setting the <code>type</code> property of a menu item to <code>"settings"</code>. This feature is available since version '''0.1.0'''.  
 +
Please see following example.
  
 
== Example ==
 
== Example ==
 
=== Screenshot ===
 
=== Screenshot ===
[[File:start_action.png|thumb|640px|none|Example Screenshot (Start Action)]]
+
[[File:settings_item.png|thumb|640px|none|Example Screenshot (Settings Menu Item)]]
  
 
=== Code ===
 
=== Code ===

Latest revision as of 10:41, 15 January 2021

It is possible to add the application settings to your menu by setting the type property of a menu item to "settings". This feature is available since version 0.1.0. Please see following example.

Example[edit]

Screenshot[edit]

Example Screenshot (Settings Menu Item)

Code[edit]

{
    "headline": "My Menu",
    "menu": [{
            "label": "My Menu Item"
        }, {
            "type": "separator"
        }, {
            "type": "settings"
        }]
}

Demo[edit]