Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 786 Bytes

File metadata and controls

41 lines (31 loc) · 786 Bytes

Category Tree (enforced string)

Snippet

Single-select Category Tree, and store Category ID as string:

{
    "title": "Category Tree (enforced string)",
    "description": "Single-select Category Tree, and store Category ID as string",
    "type": "string",
    "pattern": "category/.*",
    "ui:extension": {
        "name": "ecomm-toolkit",
        "params": {
            "label": "Category",
            "view": "tree",
            "data": "category",
            "type": "string"
        }
    }
}

Sample content

{
    "categorySingleEnforcedStringTree": "category/24"
}

Sample UI

No category selected:

Sample UI

Selecting a category:

Sample UI