These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Encore\Admin\Form\Field; |
||
4 | |||
5 | View Code Duplication | class Mobile extends Text |
|
6 | { |
||
7 | protected static $js = [ |
||
8 | '/vendor/laravel-admin/AdminLTE/plugins/input-mask/jquery.inputmask.bundle.min.js', |
||
9 | ]; |
||
10 | |||
11 | /** |
||
12 | * @see https://github.com/RobinHerbots/Inputmask#options |
||
13 | * |
||
14 | * @var array |
||
15 | */ |
||
16 | protected $options = [ |
||
17 | 'mask' => '99999999999', |
||
18 | ]; |
||
19 | |||
20 | public function render() |
||
21 | { |
||
22 | $this->inputmask($this->options); |
||
23 | |||
24 | $this->prepend('<i class="fa fa-phone fa-fw"></i>') |
||
25 | ->defaultAttribute('style', 'width: 150px'); |
||
26 | |||
27 | return parent::render(); |
||
0 ignored issues
–
show
Bug
Compatibility
introduced
by
Loading history...
|
|||
28 | } |
||
29 | } |
||
30 |