Dynamically set min & max on onSet
- Lingua principale
- JavaScript
- Stelle
- 7.6k
- Fork
- 981
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Hello!
I have 2 date pickers, one is for start date and one is for end date. When I change start date, I want to set min on end date to that value. So users can't set an end date that is before the start date.
``` javascript
onSet: function(thingSet) {
if(thingSet.select){
end_picker.set({
'min': start_picker.get('value'),
'max': false
});
}
}
```
I have verified that start_picker and end_picker are correctly set (onStart). I have tried calling render, start and stop after setting but min is not changed.
Is there a way to accomplish what I want?
Thanks in advance!
/Dennis
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.