jQuery dependency
Closed this issue · 4 comments
ASlatius commented
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
],
],
],
],
gilek commented
Are you using dev-master version?
ASlatius commented
I installed it using composer with "minimum-stability":"dev".
I assume that I have dev-master then? Please inform how to confirm that.
gilek commented
Try now