@@ -8,6 +8,8 @@ import Logger from 'core/Logger';
8
8
import AppState , { AppMode , AppFlavor } from './AppMode' ;
9
9
10
10
import './style.less' ;
11
+ import FilterCaseButton from 'dash-table/components/Filter/FilterCaseButton' ;
12
+ import { Case } from 'dash-table/components/Table/props' ;
11
13
12
14
class App extends Component < any , any > {
13
15
constructor ( props : any ) {
@@ -25,7 +27,7 @@ class App extends Component<any, any> {
25
27
const flavors = flavorParam ? flavorParam . split ( ';' ) : [ ] ;
26
28
27
29
if ( flavors . indexOf ( AppFlavor . FilterNative ) !== - 1 ) {
28
- return ( < div >
30
+ return ( < div className = 'demo-app-root' >
29
31
< button
30
32
className = 'clear-filters'
31
33
onClick = { ( ) => {
@@ -35,6 +37,17 @@ class App extends Component<any, any> {
35
37
this . setState ( { tableProps } ) ;
36
38
} }
37
39
> Clear Filter</ button >
40
+ < FilterCaseButton
41
+ filterCase = { this . state . tableProps . filter_case === Case . Insensitive
42
+ ? Case . Insensitive : Case . Sensitive }
43
+ setColumnCase = { ( ) => {
44
+ const tableProps = R . clone ( this . state . tableProps ) ;
45
+ tableProps . filter_case = tableProps . filter_case === Case . Insensitive
46
+ ? Case . Sensitive : Case . Insensitive ;
47
+
48
+ this . setState ( { tableProps } ) ;
49
+ } }
50
+ />
38
51
< input
39
52
style = { { width : '500px' } }
40
53
value = { this . state . temp_filtering }
@@ -47,6 +60,7 @@ class App extends Component<any, any> {
47
60
48
61
this . setState ( { tableProps } ) ;
49
62
} } />
63
+
50
64
</ div > ) ;
51
65
} else if ( mode === AppMode . TaleOfTwoTables ) {
52
66
if ( ! this . state . tableProps2 ) {
0 commit comments