Override filtering behavior
Disabling operators
Substitution
Traditional Syntax
include ForestAdmin::Types
@create_agent.customize_collection('customer') do |collection|
collection.replace_field_operator('fullName', Operators::EQUAL) do |value|
first_name, *last_names = value.split(' ')
ConditionTreeBranch.new(
'And',
[
ConditionTreeLeaf.new('firstName', Operators::EQUAL, first_name),
ConditionTreeLeaf.new('lastName', Operators::EQUAL, last_names.join(' ')),
]
)
end
endDSL Syntax
Operators to support to enable the search
Column Type
Operator to support
Emulation
Traditional Syntax
DSL Syntax
Last updated