Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

How to change the width of the field? #29

Open
wopnuno opened this issue Jun 3, 2016 · 4 comments
Open

How to change the width of the field? #29

wopnuno opened this issue Jun 3, 2016 · 4 comments
Labels

Comments

@wopnuno
Copy link

wopnuno commented Jun 3, 2016

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.

@tonydspaniard
Copy link
Member

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

@bloftd
Copy link

bloftd commented Sep 20, 2016

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

@ghost
Copy link

ghost commented Jan 1, 2017

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

@tonydspaniard
Copy link
Member

tonydspaniard commented Jan 16, 2017

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants