1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace JeroenNoten\LaravelAdminLte\Components; |
4
|
|
|
|
5
|
|
|
use Illuminate\View\Component; |
6
|
|
|
|
7
|
|
|
class InputSlider extends Component |
8
|
|
|
{ |
9
|
|
|
public $id, $name, $label; |
10
|
|
|
public $topclass, $inputclass; |
11
|
|
|
public $value, $disabled, $required; |
12
|
|
|
public $min, $max, $step, $vertical; |
13
|
|
|
public $tick, $ticks, $tickLabels; |
14
|
|
|
public $color; |
15
|
|
|
|
16
|
|
|
public function __construct( |
17
|
|
|
$id, $name = null, |
18
|
|
|
$label = 'Input Label', |
19
|
|
|
$topclass = null, $inputclass = null, |
20
|
|
|
$value = null,$disabled = false, $required = false, |
21
|
|
|
$min = 0, $max = 100, $step = 1, $vertical = false, |
22
|
|
|
$tick = false, $ticks = null, $tickLabels = null, |
23
|
|
|
$color = 'blue' |
24
|
|
|
) |
25
|
|
|
{ |
26
|
|
|
$this->id = $id; |
27
|
|
|
$this->name = $name; |
28
|
|
|
$this->label = $label; |
29
|
|
|
$this->topclass = $topclass; |
30
|
|
|
$this->inputclass = $inputclass; |
31
|
|
|
$this->required = $required; |
32
|
|
|
$this->disabled = $disabled; |
33
|
|
|
$this->value = $value; |
34
|
|
|
$this->min = $min; |
35
|
|
|
$this->max = $max; |
36
|
|
|
$this->step = $step; |
37
|
|
|
$this->vertical = $vertical; |
38
|
|
|
$this->tick = $tick; |
39
|
|
|
$this->ticks = $ticks; |
40
|
|
|
$this->tickLabels = $tickLabels; |
41
|
|
|
$this->color = $color; |
42
|
|
|
} |
43
|
|
|
|
44
|
|
|
public function render() |
45
|
|
|
{ |
46
|
|
|
return view('adminlte::input-slider'); |
47
|
|
|
} |
48
|
|
|
} |