fields
sets field objects participating in filtering
array fields;
Example
webix.ui({
view: "query",
fields: [
{id: "first_name", value: "First Name", type: "text"},
{id: "age", value: "Age", type: "number"},
{id: "job", value: "Job", type: "text"},
// other fields
]
});
Related samples
Details
The fields property is an array of field objects that will be used for filtering the dataset. Each field object has three properties:
- id (string, number) - field ID;
- value (string) - field value;
- type (string) - field type ("text", "number", "date");
- conditions (array) - optional. Allows specifying custom conditions instead of the default type-related options;
- format (funciton) - optional. Defines how the value will be displayed in the Query.
See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support,
connect with other developers, and share your feedback there.