2amigos / yii2-date-picker-widget

Bootstrap DatePicker Widget for Yii2
https://2amigos.us
Other
130 stars 77 forks source link

Added "link" property #51

Open kaliyev opened 7 years ago

kaliyev commented 7 years ago

Added property link, to show link instead of input Добавлено свойство ссылка, для отображения ссылки вместо инпута

tonydspaniard commented 7 years ago

Thanks @kaliyev But I am not sure this is the best way to do it as DatePicker is extending from InputWidget it should indeed render as an input as that is the expected result for such widget.

I think would be better to actually create a new object on this case like DatePickerLink but still, what would be the use case scenario? Simply showing a link that will popup the calendar? What is going to happen after? Do we need to add functions that will set some hidden inputs on our form? If that is the case, then why not forcing on the DatePickerLink those events to be properly configured?

Simply adding the link property is not enough. We need to elaborate further. Don't you think?

Thanks again for your time.