width for calendar component
Please add the witdh property to inputfield of calendar control to correctly size it forms
Yeah, I have problems setting it's width, too :(
+1. I have a solution for global component width settings, but that is not desired.
+1
inputStyle and inputStyleClass can help;
<p-calendar [inputStyle]="{'width':'100px'"} ...
<p-calendar [inputStyle]="{'width':'100px'}"
if you want to use percentage,
<p-calendar [style]="{'width':'95%'}" [inputStyle]="{'width':'95%'}"
Using PrimeNG version 5.2.6, I ended up needing only:
<p-calendar [inputStyle]="{'width': '100%', 'min-width': '100%'}"
Using [inputStyle]="{'width':'100px'}" on p-calendar worked for me.
input style , style class is not working for me
at some threshold size it's forcestopping to reduce
is thare any possible to change p-calender size
i want to change calender not input field
How do I change the calendar width? not the input field width.
how to change calendar size? it's to big..
any solutions ?
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.
No solution?
Anyone has a solution yet?
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.
Hi guys i used this CSS
.p-datepicker table td { padding: 0.1rem !important; }
hope this helps