Code Monkey home page Code Monkey logo

Comments (5)

tonydspaniard avatar tonydspaniard commented on July 23, 2024 1

Thats the inline version, it should render not popup.

from yii2-date-picker-widget.

zakayothuku avatar zakayothuku commented on July 23, 2024

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.

tonydspaniard avatar tonydspaniard commented on July 23, 2024

@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.

Riastefania15 avatar Riastefania15 commented on July 23, 2024

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.

push32 avatar push32 commented on July 23, 2024
    <?= $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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.