pebble / clay

Pebble Config Framework
MIT License
120 stars 29 forks source link

Add dataType to config items #117

Closed keegan-lillo closed 3 years ago

keegan-lillo commented 8 years ago

Add a dataType field to config items to dictate what type conversion we want to perform for appMessage.

eg:

{
  "type": "input",
  "messageKey": "num_fruit",
  "defaultValue": 5,
  "label": "Number of fruit",
  "dataType": "NUMBER"
  "attributes": {
    "type": "number"
  }
}

Types: here https://developer.pebble.com/guides/communication/using-pebblekit-js/#type-conversion

gregoiresage commented 8 years ago

Any ETA for this Clay 1.2.0 and this feature in particular ? :-p