mirror of
https://github.com/pebble-dev/clay.git
synced 2026-09-05 16:47:37 -04:00
[WIP] - Implement bool and string getter
This commit is contained in:
+28
-7
@@ -3,13 +3,34 @@ var Clay = require('pebble-clay');
|
||||
var clay = new Clay({
|
||||
config: [
|
||||
{
|
||||
label: 'test',
|
||||
type: 'color',
|
||||
messageKey: 'test_int'
|
||||
},
|
||||
{
|
||||
type: 'submit',
|
||||
defaultValue: 'submit'
|
||||
type: 'section',
|
||||
items: [
|
||||
{
|
||||
label: 'int',
|
||||
type: 'color',
|
||||
messageKey: 'test_int'
|
||||
},
|
||||
{
|
||||
label: 'char',
|
||||
type: 'input',
|
||||
messageKey: 'test_char'
|
||||
},
|
||||
{
|
||||
label: 'bool',
|
||||
type: 'toggle',
|
||||
messageKey: 'test_bool'
|
||||
},
|
||||
// {
|
||||
// label: 'raw',
|
||||
// type: 'checkboxgroup',
|
||||
// messageKey: 'test_raw',
|
||||
// options: ['one', 'two', 'three']
|
||||
// },
|
||||
{
|
||||
type: 'submit',
|
||||
defaultValue: 'submit'
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
closedCallback: function(response) {
|
||||
|
||||
Reference in New Issue
Block a user