mirror of
https://github.com/pebble-dev/clay.git
synced 2026-09-01 14:47:37 -04:00
Add hide/show method to manipulators.
This commit is contained in:
+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