mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-05 01:44:16 +08:00
⛄ Sync 2026-04-23 20:32:35
This commit is contained in:
1 parent
17738c6f79
commit
fe51d2b304
206 files changed
+725671
No files matched your search
@@ -0,0 +1,24 @@
|
||||
'use strict';
|
||||
'require baseclass';
|
||||
'require form';
|
||||
|
||||
return baseclass.extend({
|
||||
trigger: _('Custom flash interval (kernel: timer)'),
|
||||
description: _('The LED blinks with the configured on/off frequency'),
|
||||
kernel: true,
|
||||
addFormOptions: function(s) {
|
||||
var o;
|
||||
|
||||
o = s.option(form.Value, 'delayon', _('On-State Delay'),
|
||||
_('How long (in milliseconds) the LED should be on')
|
||||
);
|
||||
o.modalonly = true;
|
||||
o.depends('trigger', 'timer');
|
||||
|
||||
o = s.option(form.Value, 'delayoff', _('Off-State Delay'),
|
||||
_('How long (in milliseconds) the LED should be off')
|
||||
);
|
||||
o.modalonly = true;
|
||||
o.depends('trigger', 'timer');
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user