JsSearchAsset.php 737 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * @link http://www.yiiframework.com/
  4. * @copyright Copyright (c) 2008 Yii Software LLC
  5. * @license http://www.yiiframework.com/license/
  6. */
  7. namespace yii\apidoc\templates\bootstrap\assets;
  8. use yii\web\View;
  9. /**
  10. * The asset bundle for the offline template.
  11. *
  12. * @author Carsten Brandt <mail@cebe.cc>
  13. * @since 2.0
  14. */
  15. class JsSearchAsset extends \yii\web\AssetBundle
  16. {
  17. public $sourcePath = '@vendor/cebe/js-search';
  18. public $js = [
  19. 'jssearch.js',
  20. ];
  21. public $depends = [
  22. 'yii\web\JqueryAsset',
  23. ];
  24. public $jsOptions = [
  25. 'position' => View::POS_HEAD,
  26. ];
  27. public $publishOptions = [
  28. // only publish the jssearch js file
  29. 'only' => ['jssearch.js'],
  30. ];
  31. }