Model Picker
- Print
- DarkLight
Model Picker
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
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 |
|---|---|---|---|
| array | [] | Array of items to choose from. Each item must include id and title. id should be one of |
| 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 |
|---|---|---|
| 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"'
}
}