PATH:
home
/
centosnipponia
/
public_html
/
apptt
/
vendor
/
jeroennoten
/
laravel-adminlte
/
src
/
View
/
Components
/
Form
<?php namespace JeroenNoten\LaravelAdminLte\View\Components\Form; class InputSlider extends InputGroupComponent { use Traits\OldValueSupportTrait; /** * The bootstrap-slider plugin configuration parameters. Array with * key => value pairs, where the key should be an existing configuration * property of the plugin. * * @var array */ public $config; /** * The slider color. One of the available html colors. * * @var string */ public $color; /** * Create a new component instance. * Note this component requires the 'bootstrap-slider' plugin. * * @return void */ public function __construct( $name, $id = null, $label = null, $igroupSize = null, $labelClass = null, $fgroupClass = null, $igroupClass = null, $disableFeedback = null, $errorKey = null, $config = [], $color = null, $enableOldSupport = null ) { parent::__construct( $name, $id, $label, $igroupSize, $labelClass, $fgroupClass, $igroupClass, $disableFeedback, $errorKey ); $this->config = is_array($config) ? $config : []; $this->enableOldSupport = isset($enableOldSupport); $this->color = $color; // Set a default plugin 'id' option. $this->config['id'] = $this->config['id'] ?? "{$this->id}-slider"; } /** * Make the class attribute for the "input-group" element. Note we overwrite * the method of the parent class. * * @return string */ public function makeInputGroupClass() { $classes = ['input-group']; if (isset($this->size) && in_array($this->size, ['sm', 'lg'])) { $classes[] = "input-group-{$this->size}"; } if ($this->isInvalid() && ! isset($this->disableFeedback)) { $classes[] = 'adminlte-invalid-islgroup'; } if (isset($this->igroupClass)) { $classes[] = $this->igroupClass; } return implode(' ', $classes); } /** * Get the view / contents that represent the component. * * @return \Illuminate\View\View|string */ public function render() { return view('adminlte::components.form.input-slider'); } }
[+]
..
[-] Button.php
[edit]
[-] DateRange.php
[edit]
[-] Input.php
[edit]
[-] InputColor.php
[edit]
[-] InputDate.php
[edit]
[-] InputFile.php
[edit]
[-] InputGroupComponent.php
[edit]
[-] InputSlider.php
[edit]
[-] InputSwitch.php
[edit]
[-] Options.php
[edit]
[-] Select.php
[edit]
[-] Select2.php
[edit]
[-] SelectBs.php
[edit]
[-] TextEditor.php
[edit]
[-] Textarea.php
[edit]
[+]
Traits
[-] .htaccess.disabled
[edit]