Add hide/show method to manipulators.

This commit is contained in:
Keegan
2016-02-29 14:24:59 +11:00
parent 75aaa07048
commit 060704cb1a
4 changed files with 122 additions and 26 deletions
+2 -2
View File
@@ -10,9 +10,9 @@ module.exports = function() {
*/
function toggleBackground() {
if (this.get()) {
Clay.getItemByAppKey('background').enable();
Clay.getItemByAppKey('colorTest').show();
} else {
Clay.getItemByAppKey('background').disable();
Clay.getItemByAppKey('colorTest').hide();
}
}