gilek/yii2-gtreetable

jQuery dependency

Closed this issue · 4 comments

I'm not sure this is a real issue related to this wrapper.

I had some trouble getting yii2-gtreetable to run at all in the browser because of an asset dependency issue with jQuery. In the HTML output a script tag for bootstrap-gtreetable.js was placed before a script tag for jQuery. The $().gtreetable() call failed to run because of that.

I fixed it by changing the inclusion point of jQuery to the <head> section from my config;

'components' => [
    'assetManager' => [
        'bundles' => [
            'yii\web\JqueryAsset' => [
                'jsOptions' => [
                    'position' => yii\web\view::POS_HEAD
                ],
            ],
        ],
    ],

Are you using dev-master version?

I installed it using composer with "minimum-stability":"dev".
I assume that I have dev-master then? Please inform how to confirm that.

Try now

Issue #1, #2 and #4 are fixed with current dev-master. #3 still needs a source option.