| 1 | <?php |
||
| 5 | class Icon extends Text |
||
| 6 | { |
||
| 7 | protected $default = 'fa-pencil'; |
||
| 8 | |||
| 9 | protected static $css = [ |
||
| 10 | '/vendor/laravel-admin/fontawesome-iconpicker/dist/css/fontawesome-iconpicker.min.css', |
||
| 11 | ]; |
||
| 12 | |||
| 13 | protected static $js = [ |
||
| 14 | '/vendor/laravel-admin/fontawesome-iconpicker/dist/js/fontawesome-iconpicker.min.js', |
||
| 15 | ]; |
||
| 16 | |||
| 17 | public function __construct($column, array $arguments = []) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Set placement setting of iconpicker. |
||
| 26 | * second word must be upper case |
||
| 27 | * example bottomLeft or bottomRight |
||
| 28 | * |
||
| 29 | * @param string $placement |
||
| 30 | * |
||
| 31 | * @return $this |
||
| 32 | */ |
||
| 33 | public function placement($placement) |
||
| 38 | |||
| 39 | public function render() |
||
| 55 | } |
||
| 56 |