1 | <?php |
||
7 | class BelongsTo extends Select |
||
8 | { |
||
9 | /** |
||
10 | * @param string $class |
||
11 | * @param string $text |
||
12 | * @param string $id |
||
13 | * @param string|null $foreign |
||
14 | * @return \Yajra\DataTables\Html\Editor\Fields\Field|static |
||
15 | */ |
||
16 | public static function model($class, $text, $id = 'id', $foreign = null) |
||
24 | |||
25 | /** |
||
26 | * Add a placeholder and allow clear. |
||
27 | * Note: This requires editor select2 plugin. |
||
28 | * |
||
29 | * @see https://editor.datatables.net/plug-ins/field-type/editor.select2 |
||
30 | * @param string $text |
||
31 | * @param null|string $id |
||
32 | * @param bool $allowClear |
||
33 | * @return $this |
||
34 | */ |
||
35 | public function placeholder($text, $id = null, $allowClear = true) |
||
48 | } |
||
49 |