mirror of
https://github.com/pebble-dev/clay.git
synced 2026-08-27 20:36:33 -04:00
Rename all appKey references to messageKey
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@ module.exports = [
|
||||
},
|
||||
{
|
||||
"type": "input",
|
||||
"appKey": "email",
|
||||
"messageKey": "email",
|
||||
"defaultValue": "",
|
||||
"label": "Input Field",
|
||||
"description": "This is a new field",
|
||||
|
||||
+8
-8
@@ -38,7 +38,7 @@ module.exports = [
|
||||
},
|
||||
{
|
||||
"type": "input",
|
||||
"appKey": "email",
|
||||
"messageKey": "email",
|
||||
"defaultValue": "",
|
||||
"label": "Input Field",
|
||||
"description": "This is a description for the input component. " +
|
||||
@@ -63,7 +63,7 @@ module.exports = [
|
||||
},
|
||||
{
|
||||
"type": "slider",
|
||||
"appKey": "slider",
|
||||
"messageKey": "slider",
|
||||
"defaultValue": 15,
|
||||
"label": "Slider",
|
||||
"description": "This is the description for the slider",
|
||||
@@ -73,20 +73,20 @@ module.exports = [
|
||||
},
|
||||
{
|
||||
"type": "toggle",
|
||||
"appKey": "cool_stuff",
|
||||
"messageKey": "cool_stuff",
|
||||
"label": "This is a Toggle",
|
||||
"defaultValue": false
|
||||
},
|
||||
{
|
||||
"type": "color",
|
||||
"appKey": "colorTest",
|
||||
"messageKey": "colorTest",
|
||||
"defaultValue": "FF0000",
|
||||
"label": "Standard Color Picker",
|
||||
"sunlight": false
|
||||
},
|
||||
{
|
||||
"type": "color",
|
||||
"appKey": "sunnyColorTest",
|
||||
"messageKey": "sunnyColorTest",
|
||||
"defaultValue": "00FF00",
|
||||
"label": "Sunny Color Picker",
|
||||
"sunlight": true
|
||||
@@ -110,7 +110,7 @@ module.exports = [
|
||||
},
|
||||
{
|
||||
"type": "radiogroup",
|
||||
"appKey": "radiogroup-test",
|
||||
"messageKey": "radiogroup-test",
|
||||
"label": "Radio Group",
|
||||
"options": [
|
||||
{ "label": "Test thing", "value": "one" },
|
||||
@@ -120,7 +120,7 @@ module.exports = [
|
||||
},
|
||||
{
|
||||
"type": "checkboxgroup",
|
||||
"appKey": "checkboxgroup-test",
|
||||
"messageKey": "checkboxgroup-test",
|
||||
"defaultValue": ["quote' \"test", "two"],
|
||||
"label": "Checkbox Group",
|
||||
"options": [
|
||||
@@ -131,7 +131,7 @@ module.exports = [
|
||||
},
|
||||
{
|
||||
"type": "select",
|
||||
"appKey": "flavor",
|
||||
"messageKey": "flavor",
|
||||
"defaultValue": "grape",
|
||||
"label": "Select Menu",
|
||||
"options": [
|
||||
|
||||
+3
-3
@@ -10,9 +10,9 @@ module.exports = function() {
|
||||
*/
|
||||
function toggleBackground() {
|
||||
if (this.get()) {
|
||||
Clay.getItemByAppKey('colorTest').enable();
|
||||
Clay.getItemByMessageKey('colorTest').enable();
|
||||
} else {
|
||||
Clay.getItemByAppKey('colorTest').disable();
|
||||
Clay.getItemByMessageKey('colorTest').disable();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ module.exports = function() {
|
||||
}
|
||||
|
||||
Clay.on(Clay.EVENTS.AFTER_BUILD, function() {
|
||||
var coolStuffToggle = Clay.getItemByAppKey('cool_stuff');
|
||||
var coolStuffToggle = Clay.getItemByMessageKey('cool_stuff');
|
||||
toggleBackground.call(coolStuffToggle);
|
||||
coolStuffToggle.on('change', toggleBackground);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user