yii2-date-picker-widget icon indicating copy to clipboard operation
yii2-date-picker-widget copied to clipboard

How to change the width of the field?

Open wopnuno opened this issue 9 years ago • 4 comments

Hello,

I'm using your datetime picker, but I'm trying to change the width of the field (because it's too big) and unfortunatelly I'm not suceeding.

Can you help me?

Thank you.

wopnuno avatar Jun 03 '16 14:06 wopnuno

how is it wrapped? where is the input field placed? do you play with the bootstrap classes and input grouping containers?

tonydspaniard avatar Sep 06 '16 17:09 tonydspaniard

'contentOptions' => ['style' => 'width:150px;'],

bloftd avatar Sep 20 '16 05:09 bloftd

Setting unknown property: dosamigos\datepicker\DatePicker::contentOptions Error occurs when I add the code "'contentOptions' => ['style' => 'width:150px;']," .

ghost avatar Jan 01 '17 14:01 ghost

have you tried with options or containerOptions? https://github.com/2amigos/yii2-date-picker-widget/blob/master/src/DatePicker.php#L54

tonydspaniard avatar Jan 16 '17 00:01 tonydspaniard