kartik-v / yii2-widgets

Collection of useful widgets for Yii Framework 2.0
http://demos.krajee.com/widgets
Other
558 stars 176 forks source link

Compatibility with johnitvn/yii2-ajaxcrud #270

Closed zmoddynamics closed 8 years ago

zmoddynamics commented 9 years ago

Hi, I love the yii2-ajaxcrud extension above but it appears none of your widgets are compatible with it? Any thoughts? I've rendered your widgets before with renderAjax from an ajax call and its worked fine so I'm not sure really why your widgets are compatible with the above extension... Any thoughts?

kartik-v commented 9 years ago

I have unfortunately not gone through the above extension - so cannot comment. You may try reaching out to the author.

zmoddynamics commented 9 years ago

Hi, thanks for the response.

I have contacted the author but I don't understand his feedback. Here is the thread link:

https://github.com/johnitvn/yii2-ajaxcrud/issues/23

It seems as though his plugin requires that all assets be registered from the page making the Ajax call; but in your widgets the assets are registered automatically from within their individual views.

At least, that is what I understood from the above link.

Sent from my iPhone

On Aug 17, 2015, at 12:35 AM, Kartik Visweswaran notifications@github.com<mailto:notifications@github.com> wrote:

I have unfortunately not gone through the above extension - so cannot comment. You may try reaching out to the author.

Reply to this email directly or view it on GitHubhttps://github.com/kartik-v/yii2-widgets/issues/270#issuecomment-131684455.

kartik-v commented 8 years ago

Yes using renderAjax to render the widget should help in most cases wherever there is a content to be rendered on an ajax based response. However, I am not sure how to do that in the extension you mention?

In addition to renderAjax helping you, the widgets from offer a couple of data-krajee HTML5 data attributes within the native HTML input markups in most cases as well for you to access and refresh the plugin options via javascript.