File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 21
21
@if ($searchEnabled )
22
22
<div class =" col" >
23
23
<input
24
- @if (is_numeric ($searchDebounce ) ) wire:model.debounce.{{ $searchDebounce }}ms =" search" @endif
24
+ @if (is_numeric ($searchDebounce )&& $searchType == ' debounce' ) wire:model.debounce.{{ $searchDebounce }}ms =" search" @endif
25
+ @if ($searchType == ' lazy' ) wire:model.lazy =" search" @endif
25
26
@if ($disableSearchOnLoading ) wire:loading.attr =" disabled" @endif
26
27
class =" form-control"
27
28
type =" text"
Original file line number Diff line number Diff line change @@ -11,6 +11,13 @@ trait Search
11
11
* Search.
12
12
*/
13
13
14
+
15
+ /**
16
+ * Whether search work: debounce or lazy
17
+ * @var string
18
+ */
19
+ public $ searchType = 'debounce ' ;
20
+
14
21
/**
15
22
* Whether or not searching is enabled.
16
23
*
You can’t perform that action at this time.
0 commit comments