Datepicker in semantic ui
Solution 1
At this time of writing, there is a pending pull request here:
https://github.com/Semantic-Org/Semantic-UI/pull/3256
Here is how it looks
https://jsbin.com/hubanufuva/1/edit?html,js,output
Solution 2
Take a look on this Semantic UI Calendar module which results from the above mentioned pull request. Lots of customization and looks nice.
<h3>Input</h3>
<div class="ui calendar" id="example1">
<div class="ui input left icon">
<i class="calendar icon"></i>
<input type="text" placeholder="Date/Time">
</div>
</div>
and
$('#example1').calendar();
Solution 3
Yes there is, you'll have to give your input a type attribute of date,
<input type="date">
This is how it looks like
Solution 4
I also looked around for one but the best I could find was Date Range Picker for Semantic UI.
During initialization, you can get the GUI to look mostly Semantic UI'ish with some custom classes:
// Initialize the daterangepicker
$container.find('input').daterangepicker({
buttonClasses: "ui mini button",
applyClass: "positive",
cancelClass: "cancel",
// ...
// ...
// ...
timePicker: true
});
Solution 5
You can use Fomantic UI instead of Semantic UI, which has a calendar module.
Fomantic UI is just a community fork of Semantic UI, so migration will be easy.
At the time of posting this question (4 years ago) Fomantic UI did not exist, but in the meantime it has been greatly improved and extended by the community.
nikolas
Updated on March 06, 2020Comments
-
nikolas about 4 years
Is there any datepicker for semantic ui like bootstrap datepicker? I searched their website. But failed to get.
Jquery datepicker is worked nicely but UI does not look nice with my project.
-
Ross The Boss almost 8 yearsThat seems to be the whole bundle, how can we get just the calendar?
-
Dmitriy Nevzorov over 7 yearsCould you please extract calendar to a separate bundle?
-
michaelpoltorak over 6 yearsUnfortunately, not all browsers support so-called HTML5 date and input types. See: caniuse.com/#feat=input-datetime
-
pietrop about 4 years
months
is an argument oftext
which can be accessed inside theformatter
object by referencingsettings.text.months
. The month name becomesvar month = settings.text.months[date.getMonth()];
. -
Sam YC over 3 yearshow about using calendar that in Reactjs?