primeng icon indicating copy to clipboard operation
primeng copied to clipboard

width for calendar component

Open glivolsi opened this issue 10 years ago • 22 comments

Please add the witdh property to inputfield of calendar control to correctly size it forms

glivolsi avatar Aug 30 '16 09:08 glivolsi

Yeah, I have problems setting it's width, too :(

bella92 avatar Sep 12 '16 12:09 bella92

+1. I have a solution for global component width settings, but that is not desired.

nicovanbelle avatar Nov 24 '16 15:11 nicovanbelle

+1

greggalbreath avatar Mar 31 '17 05:03 greggalbreath

inputStyle and inputStyleClass can help;

<p-calendar [inputStyle]="{'width':'100px'"} ...

cagataycivici avatar May 29 '17 13:05 cagataycivici

<p-calendar [inputStyle]="{'width':'100px'}"

Ganeshpoloju avatar Apr 05 '18 05:04 Ganeshpoloju

if you want to use percentage,

<p-calendar [style]="{'width':'95%'}" [inputStyle]="{'width':'95%'}"

villanuevacarlos14 avatar Apr 16 '18 08:04 villanuevacarlos14

Using PrimeNG version 5.2.6, I ended up needing only:

<p-calendar [inputStyle]="{'width': '100%', 'min-width': '100%'}"

watkinst avatar Jul 20 '18 18:07 watkinst

Using [inputStyle]="{'width':'100px'}" on p-calendar worked for me.

AnkitBajpaii avatar Aug 13 '18 09:08 AnkitBajpaii

input style , style class is not working for me

kraravind167 avatar Oct 30 '18 11:10 kraravind167

at some threshold size it's forcestopping to reduce

kraravind167 avatar Oct 30 '18 11:10 kraravind167

is thare any possible to change p-calender size

vijayragaw avatar Nov 21 '18 05:11 vijayragaw

i want to change calender not input field

vijayragaw avatar Nov 21 '18 05:11 vijayragaw

How do I change the calendar width? not the input field width.

PiyushDangre avatar Jan 10 '19 09:01 PiyushDangre

how to change calendar size? it's to big..

nugrohotanjo avatar Apr 03 '19 10:04 nugrohotanjo

any solutions ?

alwinaugustin avatar Jul 08 '20 09:07 alwinaugustin

Probably you are using appendTo="body", unless it was my case. It's change the context of monthpicker. To fix, I used a div in appendTo.

dhuebes avatar Oct 11 '20 01:10 dhuebes

No solution?

velykov avatar Jan 26 '21 10:01 velykov

Anyone has a solution yet?

had99 avatar Jun 20 '21 11:06 had99

One workaround is to set display to initial on .p-datepicker td>span, like this:

.p-datepicker td>span {
    display: initial;
  }

Then you change the font-size as you which so it changes the width.

Marwenwill avatar Sep 02 '21 09:09 Marwenwill

Hi guys i used this CSS

.p-datepicker table td { padding: 0.1rem !important; }

hope this helps

selcukaltas avatar May 30 '23 22:05 selcukaltas