Skip to content

Latest commit

 

History

History
48 lines (38 loc) · 840 Bytes

File metadata and controls

48 lines (38 loc) · 840 Bytes

User Segments (strings)

Snippet

Multi-select User Segments, and store Segments as strings array:

{
    "title": "User Segments (strings)",
    "description": "Multi-select User Segments, and store Segments as strings array",
    "type": "array",
    "minItems": 0,
    "maxItems": 5,
    "items": {
        "type": "string"
    },
    "ui:extension": {
        "name": "ecomm-toolkit",
        "params": {
            "label": "User Segments",
            "view": "multi",
            "data": "segment",
            "type": "string"
        }
    }
}

Sample content

{
    "segmentMultiSelectStrings": [
        "1", 
        "2"
    ]
}

Sample UI

Empty field:

Sample UI

Selecting multiple segments:

Sample UI