Convenience function for constructing field configurations.
Value
A list suitable for use in air_table_template() or
at_create_field().
Examples
air_field_template("Status", "singleSelect",
options = list(choices = list(
list(name = "Active"), list(name = "Inactive")
))
)
#> $name
#> [1] "Status"
#>
#> $type
#> [1] "singleSelect"
#>
#> $options
#> $options$choices
#> $options$choices[[1]]
#> $options$choices[[1]]$name
#> [1] "Active"
#>
#>
#> $options$choices[[2]]
#> $options$choices[[2]]$name
#> [1] "Inactive"
#>
#>
#>
#>