Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Component]: <bl-date-picker> #894

Open
dilandoogan opened this issue Jul 10, 2024 · 1 comment
Open

[Component]: <bl-date-picker> #894

dilandoogan opened this issue Jul 10, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@dilandoogan
Copy link
Contributor

dilandoogan commented Jul 10, 2024

Figma Design Document

https://www.figma.com/file/RrcLH0mWpIUy4vwuTlDeKN/Baklava-Design-Guide?type=design&node-id=118-3469&mode=design&t=QqSZY4PDQY4PYWXh-0

General Usage Example

No response

Rules

  • Datepicker renders the calendar component within itself and provides the functionality provided by the calendar component.
  • Datepicker supports most of the Calendar component props.

Attributes

Attribute Description Default Value
label(string) Datepicker input label ''
placeholder(string) Datepicker input placeholder ''
type(string) Enables to select dates single, multiple or range single
min-date(Date,string) All dates before the given date will be disabled null
max-date(Date,string) All dates after the given date will be disabled null
defaultValue (Date,Date[]) Initially selected date null
start-of-week (number) number 0-6, 0 – Sunday, 6 – Saturday, defaults to 1 – Monday 1
disabledDates (Date,Date[]) Defines disabled dates null
disabled(boolean) Defines if Datepicker disabled false
open(boolean) Defines if Datepicker is opened or closed true
allowClear Defines if Datepicker can be cleared true
formatter Defines a function to format selected dates values into a string

Events

Event Description
bl-calendar-view-open-changed Fires when calendar view opened status changed
bl-datepicker-change Event will pass selected dates to the parent component
@dilandoogan dilandoogan added the enhancement New feature or request label Jul 10, 2024
@erbilnas
Copy link
Collaborator

First of all, thank you for your hard work 🎉 To improve validation management, maybe we could discuss events like bl-invalid and attributes like invalid-text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants