Comments (5)
Thats the inline version, it should render not popup.
from yii2-date-picker-widget.
I am experiencing the same issue: the calendar not popping up when i focus on the input field.
What could be the problem?
<?php $form = ActiveForm::begin(); ?>
<div class="col-md-6">
<?= $form->field($model, 'event_name')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'event_venue')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'event_start_date')->widget(
DatePicker::className(), [
// inline too, not bad
'inline' => false,
'clientOptions' => [
'autoclose' => false,
'format' => 'yyyy-mm-dd'
]
]);
?>
<?= $form->field($model, 'event_end_date')->widget(
DatePicker::className(), [
// inline too, not bad
'inline' => false,
'clientOptions' => [
'autoclose' => false,
'format' => 'yyyy-mm-dd'
]
]);
?>
<br>
<div class="form-group pull-right">
<?= Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create Event') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
</div>
</div>
<?php ActiveForm::end(); ?>
</div>
from yii2-date-picker-widget.
@BillionaireZ @brian2453 have you checked the developer tools if there is any javascript error? what about the css file? is it rendered?
from yii2-date-picker-widget.
I am experiencing the same issue: the calendar not popping up
<?= $form->field($model, 'Id_rekap')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'tanggal')->widget(
DatePicker::className(), [
// inline too, not bad
'inline' => false,
// modify template for custom rendering
//'template' => '<div class="well well-sm" style="background-color: #fff; width:250px">{input}</div>',
'clientOptions' => [
'autoclose' => true,
'format' => 'dd-M-yyyy'
]
]);?>
?>
from yii2-date-picker-widget.
<?= $form->field($model, 'event_start_date')->widget(
DatePicker::className(), [
// inline too, not bad
'inline' => false,
'clientOptions' => [
'autoclose' => false,
'format' => 'yyyy-mm-dd'
]
]);
?>
<?= $form->field($model, 'event_end_date')->widget(
DatePicker::className(), [
// inline too, not bad
'inline' => false,
'clientOptions' => [
'autoclose' => false,
'format' => 'yyyy-mm-dd'
]
]);
?>
i've use same widget in one form, and event_start_date its show up but event_end_date not show up any suggestion?
from yii2-date-picker-widget.
Related Issues (20)
- Make property DateRangePicker::_template protected instead private HOT 3
- Using as a time picker only has broken date header HOT 1
- Dependant Datepickers HOT 1
- Bootstrap-datepicker trigger 'show.bs.modal' when it is displayed HOT 2
- The missing file: 'js/bootstrap-datepicker.js'. HOT 3
- datepicker.css not found HOT 4
- Date 'format' is not respected on 'Update'. HOT 1
- If the date is 0000-00-00 HOT 1
- using daterangepicker in gridview documentation not given HOT 1
- Localize
- Clear button problem HOT 3
- Is not installing properly, why? HOT 2
- I recently discovered that using the plug-in bootstrap drop-down menu can't be used. What should I do HOT 8
- Selected date does not set in form
- 0000-00-00 00:00:00 value on save HOT 3
- dateFormat yyyy-M-dd does not work well when I set the language to zh-CN
- No work in modal HOT 1
- The file or directory to be published does not exist: vendor/bower/bootstrap-datepicker/dist HOT 1
- Extra Asset included in DatePickerLanguageAsset
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yii2-date-picker-widget.