Get the column(s) to be used for the label
Label columns
Set the column(s) to be used for the label
Self for chaining
Database column names
Set the method to use for a leftJoin condition if one is to be applied to the query to retrieve data from two tables
the table for the join
the first field
operator for the join
the second field
Get the ORDER BY clause for the SQL.
ORDER BY clause
Set the ORDER BY clause to use in the SQL. If this option is not provided the ordering will be based on the rendered output, either numerically or alphabetically based on the data returned by the renderer.
Self for chaining
ORDER BY statement
Get the configured label renderer
Self for chaining
Set the label renderer. The renderer can be used to combine multiple database columns into a single string that is shown as the label to the end user in the list of options.
Self for chaining
Renderering function
Get the table that the options will be gathered from.
Table name
Set the database table from which to gather the options for the list.
Self for chaining
Table name
Get the column name to use for the value in the options list.
Column name
Set the column name to use for the value in the options list. This would normally be the primary key for the table.
Self for chaining
Column name
Get the WHERE condition for this option set.
Knex WHERE condition
Set the method to use for a WHERE condition if one is to be applied to the query to get the options.
Self for chaining
Knex WHERE condition
Generated using TypeDoc
The Options class provides a convenient method of specifying where Editor should get the list of options for a
select
,radio
orcheckbox
field. This is normally from a table that is left joined to the main table being edited, and a list of the values available from the joined table is shown to the end user to let them select from.Options
instances are used with the options method.Export