luci/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/timer.js
Florian Eckert b5ea85b724 luci-mod-system: add help text to the led-trigger timer
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-09-03 10:00:22 +02:00

23 lines
538 B
JavaScript

'use strict';
'require baseclass';
'require form';
return baseclass.extend({
trigger: _('Custom flash interval (kernel: timer)'),
kernel: true,
addFormOptions(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');
}
});