@@ -26,8 +26,8 @@ This component allows users to build complex condition trees that can be used to
26
26
- RHS can be:
27
27
- values
28
28
- another fields (of same type)
29
- - ~~ functions (arguments also can be values/fields/funcs) ~~ (not implemented yet )
30
- - LHS can be field ~~ or function~~
29
+ - functions (arguments also can be values/fields/funcs)
30
+ - LHS can be field or function
31
31
- Reordering (drag-n-drop) support for rules and groups of rules
32
32
- Export to MongoDb, SQL, JsonLogic, SpEL or ElasticSearch
33
33
@@ -74,7 +74,7 @@ config = {
74
74
' label' : ' Name' ,
75
75
' type' : ' text' ,
76
76
},
77
- ' qty ' : {
77
+ ' age ' : {
78
78
' label' : ' Age' ,
79
79
' type' : ' number' ,
80
80
' fieldSettings' : {
@@ -119,9 +119,8 @@ def condition_tree(
119
119
120
120
A basic configuration can be built from a DataFrame with ` config_from_dataframe ` .
121
121
For a more advanced configuration, see the component [ doc] ( https://github.com/ukrbublik/react-awesome-query-builder/blob/master/CONFIG.adoc )
122
- and [ demo] ( https://ukrbublik.github.io/react-awesome-query-builder/ ) .
123
- * Note* : Javascript functions (ex: validators) are not yet supported.
124
-
122
+ and [ demo] ( https://ukrbublik.github.io/react-awesome-query-builder/ ) .
123
+ Custom javascript functions must be wrapped into the JsCode class (see [ Advanced config] ( https://condition-tree-demo.streamlit.app/Advanced_config ) )
125
124
126
125
- ** return_type** : Format of the returned value :
127
126
- queryString
@@ -164,7 +163,3 @@ Can also be used to access the generated condition tree (see section below).
164
163
165
164
When a key is defined for the component, the condition tree generated is accessible through ` st.session_state[key] ` as a dictionary.
166
165
It can be loaded as an input tree through the ` tree ` parameter.
167
-
168
-
169
- ## Potential future improvements
170
- - ** Javascript support** : allow injection of javascript code in the configuration (e.g. validators)
0 commit comments