mirror of
https://github.com/pebble-dev/clay.git
synced 2026-08-28 04:46:57 -04:00
41 lines
834 B
JavaScript
41 lines
834 B
JavaScript
'use strict';
|
|
var Clay = require('pebble-clay');
|
|
var clay = new Clay({
|
|
config: [
|
|
{
|
|
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) {
|
|
console.log('closedcallback: arguments' + JSON.stringify(arguments));
|
|
}
|
|
});
|
|
|