-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #395 from cidgoh/issue-391
Unified date, time, and datetime input widgets
- Loading branch information
Showing
14 changed files
with
717 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import FlatpickrEditor from './FlatpickrEditor'; | ||
|
||
class DateEditor extends FlatpickrEditor { | ||
getFlatpickrConfig() { | ||
return { | ||
enableTime: false, | ||
}; | ||
} | ||
} | ||
|
||
export default DateEditor; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import FlatpickrEditor from './FlatpickrEditor'; | ||
|
||
class DatetimeEditor extends FlatpickrEditor { | ||
getFlatpickrConfig() { | ||
return { | ||
enableTime: true, | ||
}; | ||
} | ||
} | ||
|
||
export default DatetimeEditor; |
Oops, something went wrong.