genQueryFilters.Rd
Generate filters definition
genQueryFilters(
data,
settings = list(),
.queryBuilderConfig = queryBuilder::queryBuilderConfig
)
Dataset from which filters should extracted.
Named list. Column-specific filter configuration. For each variable the provided settings will overwrite the default ones.
R6 object of class 'queryBuilderConfig' storing queryOperators. See query-operator.
genQueryFilters(
iris,
list(
Species = list(operators = c("equal", "not_equal"))
)
)
#> [[1]]
#> [[1]]$id
#> [1] "Sepal.Length"
#>
#> [[1]]$field
#> [1] "Sepal.Length"
#>
#> [[1]]$type
#> [1] "double"
#>
#> [[1]]$input
#> [1] "number"
#>
#> [[1]]$placeholder
#> Choose Sepal.Length
#>
#> [[1]]$validation
#> [[1]]$validation$min
#> [1] 4.3
#>
#> [[1]]$validation$max
#> [1] 7.9
#>
#>
#> [[1]]$operators
#> [1] "equal" "not_equal" "in" "not_in"
#> [5] "less" "less_or_equal" "greater" "greater_or_equal"
#> [9] "between" "not_between" "is_null" "not_is_null"
#>
#>
#> [[2]]
#> [[2]]$id
#> [1] "Sepal.Width"
#>
#> [[2]]$field
#> [1] "Sepal.Width"
#>
#> [[2]]$type
#> [1] "double"
#>
#> [[2]]$input
#> [1] "number"
#>
#> [[2]]$placeholder
#> Choose Sepal.Width
#>
#> [[2]]$validation
#> [[2]]$validation$min
#> [1] 2
#>
#> [[2]]$validation$max
#> [1] 4.4
#>
#>
#> [[2]]$operators
#> [1] "equal" "not_equal" "in" "not_in"
#> [5] "less" "less_or_equal" "greater" "greater_or_equal"
#> [9] "between" "not_between" "is_null" "not_is_null"
#>
#>
#> [[3]]
#> [[3]]$id
#> [1] "Petal.Length"
#>
#> [[3]]$field
#> [1] "Petal.Length"
#>
#> [[3]]$type
#> [1] "double"
#>
#> [[3]]$input
#> [1] "number"
#>
#> [[3]]$placeholder
#> Choose Petal.Length
#>
#> [[3]]$validation
#> [[3]]$validation$min
#> [1] 1
#>
#> [[3]]$validation$max
#> [1] 6.9
#>
#>
#> [[3]]$operators
#> [1] "equal" "not_equal" "in" "not_in"
#> [5] "less" "less_or_equal" "greater" "greater_or_equal"
#> [9] "between" "not_between" "is_null" "not_is_null"
#>
#>
#> [[4]]
#> [[4]]$id
#> [1] "Petal.Width"
#>
#> [[4]]$field
#> [1] "Petal.Width"
#>
#> [[4]]$type
#> [1] "double"
#>
#> [[4]]$input
#> [1] "number"
#>
#> [[4]]$placeholder
#> Choose Petal.Width
#>
#> [[4]]$validation
#> [[4]]$validation$min
#> [1] 0.1
#>
#> [[4]]$validation$max
#> [1] 2.5
#>
#>
#> [[4]]$operators
#> [1] "equal" "not_equal" "in" "not_in"
#> [5] "less" "less_or_equal" "greater" "greater_or_equal"
#> [9] "between" "not_between" "is_null" "not_is_null"
#>
#>
#> [[5]]
#> [[5]]$id
#> [1] "Species"
#>
#> [[5]]$field
#> [1] "Species"
#>
#> [[5]]$type
#> [1] "string"
#>
#> [[5]]$input
#> [1] "select"
#>
#> [[5]]$values
#> [1] "setosa" "versicolor" "virginica"
#>
#> [[5]]$placeholder
#> Choose Species
#>
#> [[5]]$operators
#> [1] "equal" "not_equal"
#>
#>