Borales / yii2-phone-input

Yii2 International telephone numbers
Other
135 stars 55 forks source link

Exception in use with kartik tabular form #68

Closed strtob closed 3 years ago

strtob commented 3 years ago

Hi,

I try to use this good looking widget with kartik tabular form, unfurtanetly I get this error:

Exception 'Error' with message Class <<'input type="tel" id="w0" class="form-control" name="number" autocomplete="off">> not found'

in /home/tst/work/assetor/vendor/kartik-v/yii2-builder/src/BaseForm.php:477

Is there a quick fix possible?

strtob commented 3 years ago

sorry, wrong classname definitino, works:

'number' => [ //'label' => 'Tbl company number type', 'type' => TabularForm::INPUT_WIDGET, 'widgetClass' => \borales\extensions\phoneInput\PhoneInput::classname(), 'options' => [ 'name' => 'number', 'jsOptions' => [ 'allowExtensions' => true,
] ], 'columnOptions' => ['width' => '200px'] ],

but I need to make the list open outside of the inner window?

strtob commented 3 years ago

after some hours I've found a soltuion, hope this helps someone as well:

.kv-grid-container { overflow-x: initial; }