title: Yii2 include assets after code generated by widget
body: <p>How to include my .js files after javascript code generated by Datepicker widget in view file.</p>
  
  <pre><code>            echo DatePicker::widget([
                  'name'  =&gt; 'datepicker--2',
                  'id' =&gt; 'datepicker--2',
                  'clientOptions' =&gt; [
                      'showOtherMonths' =&gt; true,
                      'maxDate' =&gt; '+ 0d',
                      'showOtherMonths' =&gt; true,
                      'selectOtherMonths' =&gt; true,
                  ]
              ]);
  </code></pre>
  
  <p>My asset bundle:</p>
  
  <pre><code>namespace app\assets;
  
  use yii\web\AssetBundle;
  
  class ChartsAsset extends AssetBundle
  {
      public $basePath = '@webroot';
      public $baseUrl = '@web';
      public $js = [
          'js/charts.js',
          'js/charts-init.js',
      ];
      public $depends = [
          'yii\web\YiiAsset',
          'yii\jui\JuiAsset',
          'yii\web\JqueryAsset',
      ];
  }
  </code></pre>
  
  <p>What I'm getting on my page source:</p>
  
  <pre><code>...
  &lt;script src="/new/js/charts.js"&gt;&lt;/script&gt;
  &lt;script src="/new/js/charts-init.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;jQuery(document).ready(function () {
  $('#datepicker--2').datepicker($.extend({}, {"showOtherMonths":true,"maxDate":"+ 0d","selectOtherMonths":true,"dateFormat":"M d, yy"}));
  });&lt;/script&gt;&lt;/body&gt;
  &lt;/html&gt;
  </code></pre>