PATH:
home
/
centosnipponia
/
public_html
/
eccity
/
vendor
/
jeroennoten
/
laravel-adminlte
/
src
/
Components
/
Form
<?php namespace JeroenNoten\LaravelAdminLte\Components\Form; class SelectBs extends inputGroupComponent { /** * The bootstrap-select plugin configuration parameters. Array with * key => value pairs, where the key should be an existing configuration * property of the bootstrap-select plugin. * * @var array */ public $config; /** * Create a new component instance. * Note this component requires the 'bootstrap-select' plugin. * * @return void */ public function __construct( $name, $id = null, $label = null, $igroupSize = null, $labelClass = null, $fgroupClass = null, $igroupClass = null, $disableFeedback = null, $errorKey = null, $config = [] ) { parent::__construct( $name, $id, $label, $igroupSize, $labelClass, $fgroupClass, $igroupClass, $disableFeedback, $errorKey ); $this->config = is_array($config) ? $config : []; } /** * Make the class attribute for the input group item. * * @return string */ public function makeItemClass() { $classes = ['form-control']; if ($this->isInvalid() && ! isset($this->disableFeedback)) { $classes[] = 'is-invalid'; } // The next workaround setups the plugin when using sm/lg sizes. // Note: this may change with newer plugin versions. if (isset($this->size) && in_array($this->size, ['sm', 'lg'])) { $classes[] = "form-control-{$this->size}"; $classes[] = 'p-0'; } return implode(' ', $classes); } /** * Get the view / contents that represent the component. * * @return \Illuminate\View\View|string */ public function render() { return view('adminlte::components.form.select-bs'); } }
[+]
..
[-] InputGroupComponent.php
[edit]
[-] InputFile.php
[edit]
[-] SelectBs.php
[edit]
[-] InputSlider.php
[edit]
[-] InputSwitch.php
[edit]
[-] InputColor.php
[edit]
[-] Select2.php
[edit]
[-] TextEditor.php
[edit]
[-] Textarea.php
[edit]
[-] Button.php
[edit]
[-] Select.php
[edit]
[-] InputDate.php
[edit]
[-] Input.php
[edit]
[-] Options.php
[edit]
[-] DateRange.php
[edit]
[-] .htaccess.disabled
[edit]