2020-02-20 11:04:12 +00:00
|
|
|
'use strict';
|
2020-04-03 08:00:06 +00:00
|
|
|
'require baseclass';
|
2020-02-20 11:04:12 +00:00
|
|
|
'require form';
|
|
|
|
|
2020-04-03 08:00:06 +00:00
|
|
|
return baseclass.extend({
|
2020-04-28 13:59:49 +00:00
|
|
|
trigger: _('Custom flash interval (kernel: timer)'),
|
2021-09-02 12:52:23 +00:00
|
|
|
description: _('The LED blinks with the configured on/off frequency'),
|
2020-02-20 11:04:12 +00:00
|
|
|
kernel: true,
|
2021-10-31 21:26:42 +00:00
|
|
|
addFormOptions: function(s) {
|
2020-02-20 11:04:12 +00:00
|
|
|
var o;
|
|
|
|
|
2021-09-02 09:45:47 +00:00
|
|
|
o = s.option(form.Value, 'delayon', _('On-State Delay'),
|
|
|
|
_('How long (in milliseconds) the LED should be on')
|
|
|
|
);
|
2020-02-20 11:04:12 +00:00
|
|
|
o.modalonly = true;
|
|
|
|
o.depends('trigger', 'timer');
|
|
|
|
|
2021-09-02 09:45:47 +00:00
|
|
|
o = s.option(form.Value, 'delayoff', _('Off-State Delay'),
|
|
|
|
_('How long (in milliseconds) the LED should be off')
|
|
|
|
);
|
2020-02-20 11:04:12 +00:00
|
|
|
o.modalonly = true;
|
|
|
|
o.depends('trigger', 'timer');
|
|
|
|
}
|
|
|
|
});
|