MaskedInputAsset.php 653 B

123456789101112131415161718192021222324252627282930
  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\widgets;
  8. use yii\web\AssetBundle;
  9. /**
  10. * The asset bundle for the [[MaskedInput]] widget.
  11. *
  12. * Includes client assets of [jQuery input mask plugin](https://github.com/RobinHerbots/Inputmask).
  13. *
  14. * @author Kartik Visweswaran <kartikv2@gmail.com>
  15. * @since 2.0
  16. */
  17. class MaskedInputAsset extends AssetBundle
  18. {
  19. public $sourcePath = '@bower/inputmask/dist';
  20. public $js = [
  21. 'jquery.inputmask.bundle.js',
  22. ];
  23. public $depends = [
  24. 'yii\web\YiiAsset',
  25. ];
  26. }