Model Picker
    • Dark
      Light

    Model Picker

    • Dark
      Light

    Article summary

    The Model Picker is a single select choice picker that allows users to select predefined Sight Machine Models: cycle, part, downtime, line and kpi.

    Configuration Options

    The picker can be configured through the following options:

    Option

    Type

    Default

    Description

    items

    array

    []

    Array of items to choose from. Each item must include id and title. id should be one of "cycle", "part", "downtime", "line", "kpi"

    pickedItemId

    string

    "cycle"

    Optional id to select by default.

    Example Configuration

    {
      "items": [
        {
          "id": "cycle",
          "title": "Cycle"
        },
        {
          "id": "downtime",
          "title": "Downtime"
        }
      ],
      "pickedItemId": "cycle",
      "type": "model"
    }

    Default Query Params

    The model picker generates the following params to the API Query:

    Parameter

    Type

    Description

    value

    string

    selected item id

    Example request body:

    "model": {
      "pickerType": "model",
      "value": "cycle"
    },

    Page Link

    Example mapping for page link.

    Assigning a specific model.

    {
        "mapping": {
            'model': '"downtime"'
        }
    }