File tree 2 files changed +15
-0
lines changed
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,16 @@ class TableHeaderColumn extends Component {
146
146
}
147
147
}
148
148
}
149
+
150
+ applyFilter ( val ) {
151
+ if ( this . props . filter === undefined ) return ;
152
+ switch ( this . props . filter . type ) {
153
+ case Const . FILTER_TYPE . TEXT : {
154
+ this . refs . textFilter . applyFilter ( val ) ;
155
+ break ;
156
+ }
157
+ }
158
+ }
149
159
}
150
160
151
161
const filterTypeArray = [ ] ;
Original file line number Diff line number Diff line change @@ -24,6 +24,11 @@ class TextFilter extends Component {
24
24
this . props . filterHandler ( value , Const . FILTER_TYPE . TEXT ) ;
25
25
}
26
26
27
+ applyFilter ( filterText ) {
28
+ this . refs . inputText . value = filterText ;
29
+ this . props . filterHandler ( filterText , Const . FILTER_TYPE . TEXT ) ;
30
+ }
31
+
27
32
componentDidMount ( ) {
28
33
const defaultValue = this . refs . inputText . value ;
29
34
if ( defaultValue ) {
You can’t perform that action at this time.
0 commit comments