Possibility to disable the Time Input widget

Hello,

I’ve played a little with the Time Input widget, and I thought it was logical to uncheck all weekdays in order to disable the timer. But I realized that by unchecking all weekdays, t.isWeekdaySelected(i) is true for i between 1 and 7. So unchecking all weekdays gives the same result as checking them all. Checking only 1 or more weekday then gives the logical result, being t.isWeekdaySelected(i) is true for the weekday selected and false for the weekday not selected.

My questions are:

  • Can you confirm this is true?
  • Is it supposed to be this way? If not, are you going to change this? If yes, wouldn’t it be useful to add a checkbox in the time input widget to activate/deactivate the timer?

The app is updated on my mobile, and I am using the library version 0.4.4

Best,

Valentin

That is how it was “designed” but there is a library hack on this site if you want it to be different.

Oh ok so it’s suposed to be this way. Thanks for the answer.
I’ll just add a button to activate/deactivate the timer.

Best,

Valentin

Hello,
Can you please link the solution for this “problem”?

Many thanks.

@BVG the Time Input widget library hack can be found in the following thread TimeInput Widget delivers ALL days selected when no day is selected

Thanks :slight_smile: