| Total Complexity | 2 |
| Total Lines | 54 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class Button extends Component |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The visible label (text) for the button. |
||
| 12 | * |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | public $label; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The button type ('button', 'submit', 'reset'). Similar to the html type |
||
| 19 | * attribute but with a default value. |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | public $type; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * The button style theme. One of the available AdminLTE theme: primary, |
||
| 27 | * secondary, info, warning, danger, success, dark, etc. |
||
| 28 | * |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | public $theme; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * A fontawesome icon for the button. |
||
| 35 | * |
||
| 36 | * @var string |
||
| 37 | */ |
||
| 38 | public $icon; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Create a new component instance. |
||
| 42 | * |
||
| 43 | * @return void |
||
| 44 | */ |
||
| 45 | 1 | public function __construct( |
|
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Get the view / contents that represent the component. |
||
| 56 | * |
||
| 57 | * @return \Illuminate\View\View|string |
||
| 58 | */ |
||
| 59 | 1 | public function render() |
|
| 64 |