-
EnvironmentVersion: 3.15.1 QuestionHello, I saw a comment saying that But I cannot use it properly and cannot find any info regarding this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Is this for a single date picker or a date range picker? Yes, you can supply your own if you want to take our default shortcuts and just remove one, you can look at this function for reference: blueprint/packages/datetime/src/shortcuts.tsx Line 119 in bcdb2bc |
Beta Was this translation helpful? Give feedback.
Is this for a single date picker or a date range picker?
Yes, you can supply your own
shortcuts
to override the default shortcuts... it should be an array of objects adhering to theIDatePickerShortcut
interface:blueprint/packages/datetime/src/shortcuts.tsx
Line 45 in bcdb2bc
if you want to take our default shortcuts and just remove one, you can look at this function for reference:
blueprint/packages/datetime/src/shortcuts.tsx
Line 119 in bcdb2bc