buttons
Description
shows/hides the Today and Clear buttons in the lower part of the popup with calendarsType
boolean or an array of buttons ["clear", "today", "done"]
Parameters
true
- adds default buttonsfalse
- hides buttons
If an array is specified, each value adds a button:
clear
- adds the Clear buttontoday
- adds the Today buttondone
- adds the Done button
Default values
true; ["clear", "today"]
Example
<script>
const date = {
start: new Date(2020, 1, 1),
end: new Date(2021, 3, 3)
};
</script>
<DateRangePicker value={date} buttons={false} />
Related article: Configuring buttons