PATH:
home
/
lab2454c
/
costbloc.com
/
vendor
/
yajra
/
laravel-datatables-html
/
src
/
Html
/
Editor
/
Fields
<?php namespace Yajra\DataTables\Html\Editor\Fields; /** * @see https://editor.datatables.net/reference/field/select */ class Select extends Field { protected $type = 'select'; /** * Set field multiple value. * * @param bool $value * @return $this */ public function multiple(bool $value = true) { $this->attributes['multiple'] = $value; return $this; } /** * Set field optionsPair value. * * @param string|array $label * @param string $value * @return $this */ public function optionsPair($label = 'label', $value = 'value') { if (is_array($label)) { $this->attributes['optionsPair'] = $label; } else { $this->attributes['optionsPair']['label'] = $label; $this->attributes['optionsPair']['value'] = $value; } return $this; } /** * Set field placeholder value. * * @param string $value * @return $this */ public function placeholder($value) { $this->attributes['placeholder'] = $value; return $this; } /** * Set field placeholderDisabled value. * * @param bool $value * @return $this */ public function placeholderDisabled(bool $value) { $this->attributes['placeholderDisabled'] = $value; return $this; } /** * Set field placeholderValue value. * * @param string $value * @return $this */ public function placeholderValue($value) { $this->attributes['placeholderValue'] = $value; return $this; } }
[-] File.php
[edit]
[+]
..
[-] Date.php
[edit]
[-] BelongsTo.php
[edit]
[-] Boolean.php
[edit]
[-] ReadOnly.php
[edit]
[-] Image.php
[edit]
[-] TextArea.php
[edit]
[-] Radio.php
[edit]
[-] Text.php
[edit]
[-] Select.php
[edit]
[-] Number.php
[edit]
[-] DateTime.php
[edit]
[-] Hidden.php
[edit]
[-] Password.php
[edit]
[-] Time.php
[edit]
[-] Field.php
[edit]
[-] Options.php
[edit]
[-] Checkbox.php
[edit]
[-] Select2.php
[edit]