BIG-RAT / Managed-App-Schema-Builder

Creates JSON file that can be used to set application preferences
MIT License
92 stars 3 forks source link

Add infoText to every key #8

Open talkingmoose opened 1 year ago

talkingmoose commented 1 year ago

Jamf manifests support the infoText keyword to display a tooltip when a cursor hovers over an “info” icon. This is useful for displaying additional information when space is limited.

Here’s a basic property:

{
    "title": "Disk Manager (com.company.diskmanager)",
    "description": "Preference settings for the fictitious Disk Manager application. This manifest demonstrates different ways to format the appearance or value of properties as well as include useful options like infoText. Jamf Pro supports many but not all elements and options here: https://github.com/json-editor/json-editor.",
    "properties": {
        "askForPassword": {
            "title": "Ask For Password",
            "description": "Set Disk Manager application to require a password.",
            "property_order": 25,
            "type": "boolean"
        }
    }
}

Here’s the same property with the infoText option. The “Keyword: askForPassword” text is just an example of what someone could include with this option.

{
    "title": "Disk Manager (com.company.diskmanager)",
    "description": "Preference settings for the fictitious Disk Manager application. This manifest demonstrates different ways to format the appearance or value of properties as well as include useful options like infoText. Jamf Pro supports many but not all elements and options here: https://github.com/json-editor/json-editor.",
    "properties": {
        "askForPassword": {
            "title": "Ask For Password",
            "description": "Set Disk Manager application to require a password.",
            "property_order": 25,
            "type": "boolean",
            "options": {
                "infoText": "Keyword: askForPassword"
            }
        }
    }
}

This change applies to all property types not just boolean.

image

BIG-RAT commented 5 months ago

planned for next release