File tree Expand file tree Collapse file tree 2 files changed +1
-10
lines changed
pgml-dashboard/src/components/inputs/text/search/search_option Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change 1
- use crate :: components:: stimulus:: stimulus_action:: { StimulusAction , StimulusEvents } ;
2
1
use pgml_components:: { component, Component } ;
3
2
use sailfish:: TemplateOnce ;
4
3
5
4
#[ derive( TemplateOnce , Default ) ]
6
5
#[ template( path = "inputs/text/search/search_option/template.html" ) ]
7
6
pub struct SearchOption {
8
7
value : Component ,
9
- action : StimulusAction ,
10
8
}
11
9
12
10
impl SearchOption {
13
11
pub fn new ( value : Component ) -> SearchOption {
14
- SearchOption {
15
- value,
16
- action : StimulusAction :: new ( )
17
- . controller ( "inputs-text-search-search" )
18
- . method ( "selectOption" )
19
- . action ( StimulusEvents :: FocusIn ) ,
20
- }
12
+ SearchOption { value }
21
13
}
22
14
}
23
15
Original file line number Diff line number Diff line change 1
1
2
2
< li
3
3
class ="menu-item d-flex align-items-center justify-content-start "
4
- data-action ="<%- action %> "
5
4
>
6
5
< %+ value %>
7
6
</ li >
You can’t perform that action at this time.
0 commit comments