Skip to content

Calendar module: input size #1902

Discussion options

You must be logged in to vote

The calendar uses FUIs input element, which supports sizing. So try

<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 table component which is used inside the calendar module by changing the default for its table className like this:

$('.ui.calendar')
  .calendar({
  	className:{
    	table: 'ui massive celled center aligned unstackable table',
    }
  })
;

See https://jsfiddle.net/lubber/umr19osn/3/

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cheesyMan
Comment options

Answer selected by cheesyMan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment