Rename all appKey references to messageKey

This commit is contained in:
Keegan
2016-06-15 10:58:45 -07:00
parent c3c8de77fc
commit 940c5e2451
11 changed files with 100 additions and 95 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ module.exports = [
},
{
"type": "input",
"appKey": "email",
"messageKey": "email",
"defaultValue": "",
"label": "Input Field",
"description": "This is a new field",
+8 -8
View File
@@ -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
View File
@@ -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);