Calendar module: input size #1902
Answered
by
lubber-de
cheesyMan
asked this question in
Modules (Modal, Dropdown, Popup, Calendar, Toast, ...)
-
Is there a way to quickly manage the size of the calendar module input so it's of the same size of others inputs/dropdowns in the same form? As I see from the docs the calendar has no mini, tiny, small, large etc class to set |
Beta Was this translation helpful? Give feedback.
Answered by
lubber-de
Mar 2, 2021
Replies: 1 comment 1 reply
-
The calendar uses FUIs <div class="ui calendar" id="standard_calendar">
<div class="ui massive input left icon">
<i class="calendar icon"></i>
<input type="text" placeholder="Date/Time">
</div>
</div> See https://jsfiddle.net/lubber/umr19osn/ if you also want the calendar popup to be sized as well, add the desired sizing for the $('.ui.calendar')
.calendar({
className:{
table: 'ui massive celled center aligned unstackable table',
}
})
; |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
cheesyMan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The calendar uses FUIs
input
element, which supports sizing. So trySee https://jsfiddle.net/lubber/umr19osn/
if you also want the calendar popup to be sized as well, add the desired sizing for the
table
component which is used inside the calendar module by changing the default for its table className like this:See https://jsfiddle.net/lubber/umr19osn/3/