I
I
Igor Vasiliev2018-03-23 19:23:36
Yii
Igor Vasiliev, 2018-03-23 19:23:36

How to remove calendar from kartik daterange plugin?

Hello.
--
Actually, this is what the result should look like:
5ab52712a8ca3950385806.png
Here is a link to the plugin:
demos.krajee.com/date-range#usage
Naturally, the "displaynon" solution is not suitable. I don’t want to connect other date and time plugins, it does an excellent job with the calendar, with time, with weeks, customizable display format, does a great job of reducing input when it comes to ranking information, plus cross-platform and cross-browser.
2) The question is, is there a json file, can it be made multilingual? Roughly speaking, how to make in
Yii2<?=Yii::t('yii', 'slovo');?>so that I can substitute words from the array. I made a business card site for myself, I don’t want to bother with frameworks and databases, if someone is so perverted, tell me how to do it))
-
a big request, do not write what is impossible or wrong, this is not a solution, but a waste of time. If not, then how can you understand the principle, of course, the topic with the date and time ranger is more interested.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2018-03-24
@Isolution666

Good morning.
Install kartik\datecontrol\DateControl.
Forms an input for the time "from" in the form

<?= $form->field($model, 'time_start')->widget(DateControl::className(),
    ['type' => DateControl::FORMAT_TIME]
) ?>

You form exactly the same input for the time "before". Set up the module as described in the documentation.
As a result, you get the opportunity to specify the time of work.

M
Maxim Timofeev, 2018-03-23
@webinar

Everything is there.
www.daterangepicker.com/#config
Or trite in css display none

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question