Best way to model a filter with parameterized operations #215
Unanswered
thiagomajesk
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Can you post some of your code, maybe? Then I can better understand what you are trying to do. Some things to look out for:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
Hi! What would be the best way to model this kind of filter?
Currently, I have to search for values scattered across the flop and form data structures to build this. Is there an easier way to access both the field values and the operation values? Any recommendations?
BTW, the examples for
hidden_inputs_for_filter
on the docs didn't work for me, so I'm not sure what that should generate.PS.: It seems that there are some inconsistencies with the values available as
i.field
. The field value is not always populated correctly from what is present in the URL, so I have to resort to searching the flop:filters
key to get the actual field value and the operation value - code is kinda ugly, but works.Beta Was this translation helpful? Give feedback.
All reactions