mirror of
https://github.com/pebble-dev/clay.git
synced 2026-10-28 15:39:56 -04:00
Add hide/show method to manipulators.
This commit is contained in:
1 parent
75aaa07048
commit
060704cb1a
4 files changed
+122
-26
No files matched your search
+2
-2
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user