jQWidgets Forums

jQuery UI Widgets Forums General Discussions Yii2 samples?

This topic contains 2 replies, has 2 voices, and was last updated by  hankBrown 9 years, 1 month ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Yii2 samples? #82197

    hankBrown
    Blocked

    Four years ago in this forum: http://www.jqwidgets.com/community/topic/jqwidgets-yii/ “”Unfortunately, we do not have experience with Yii Framework and we will not be able to help you to incorporate our widgets into it.”

    Generate widgets: https://github.com/dumuro/yii2-widget-jqwidgets

    Asset bundle: https://github.com/sansusan/yii2-jqwidgets-asset

    New to yii2 and jqwidgets, I do not find samples for yii2 rest implementations using jqwidgets.

    It would be helpful to see where “total rows” etc gets plugged in to the php side. Serializing responses.

    I wonder there are no gitHub projects for query building and response formatting using Yii2 and jqwidgets.

    Without really trying, I get a grid with data. Great! But now it’s a matter of mapping eg “TotalRows” to “RowCount”. I made those names up, I assume Yii2 and jqwidgets did not happen to choose the same names for meta/extra data.

    I guess we start by swiping the php code from the jqwidget docs (say for grid filtering), and adapt it into Yii2 ActiveDataProviders or Serializers.

    I don’t need anyone to do this for me, I was hoping to survey the Yii2 landscape for ideas and best practices talking to jqwidgets.

    The Yii2 docs are very good, but also very generic. There are so many ways to skin this cat.

    Any Yii2 experts out there with links or suggestions, thank you in advance.

    Yii2 samples? #82213

    admin
    Keymaster

    Hi hankBrown,

    We do not have any integration with that particular framework. As we have not received many requests about it through the years, the priority of this work item is low.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Yii2 samples? #82399

    hankBrown
    Blocked

    Thank you for your reply.

    It does seem that jqwidgets has been abandoned by the yii2 community.

    There was a lot of useful stuff for 1.0, but nobody has taken up the torch for yii2.

    In case anyone else is trying to evaluate yii2 and jqwidgets with JSONP, I found one way to get going was to override ActiveDataProvider::getModels

    public function getModels()
    {
        $this->prepare();
        return ['data' => parent::getModels(), 'callback' => $_REQUEST['callback'] ];
    }

    I notice others are returning similar, but directly from a rest controller rather than the data provider.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.