Indirect Widgets
Indirect widgets are used to display and edit data not about a selected records, but other entries which are dependent on or related to them.
It is possible to extend the list and variety of indirect widgets, and Rierino is shipped with the following widgets:
Dependent Object Editor
DependentObjectEditor provides ability to search for, create and edit entries that are dependent to current record (such as variants of a product or values of an attribute). This editor uses DependentQueryTableLister for listing dependent objects, which is configured similar to the QueryTableLister. This widget has the following special properties:
props.type
Name of the schema and UI configuration that will be used for listing and editing dependent objects
product_variant
-
props.source
Name of data source mapping to use for fetching dependent objects
product_variants
value of type property
props.mapping.queryField
Filter name that will be passed on for querying the source
productid
-
props.mapping.dataField
Json path for setting value of current object in dependent entries
data.productId
-
props.noCreate
Whether record creation should be restricted
true
false
Related Object Editor
RelatedObjectEditor provides ability to create relation between current record and other existing entries (such as adding products to a collection). This editor allows searching for existing entries using configurable filters. This widget has the following special properties:
props.source
Name of data source mapping to use for fetching list of related records and details
product
-
props.columns
List of default table column configurations
-
-
props.selector
Json path to the id field for representing related record
id
-
props.detail.source
Overriding data source name to use when displaying related record details
product-list
-
props.detail.filter
Filter parameter to pass related records with when querying from detail source
productids
-
props.detail.columns
List of table column configurations for displaying related record details
{"path":"id","title":"ID"}
-
props.list.source
Overriding data source name to use when searching for records
product-search
-
props.list.filters
List of main and extra filters for searching from list source
"main":[{"path":"name","widget":"TextFilter"}]
-
props.list.columns
List of table column configurations for displaying search results
{"path":"id","title":"ID"}
-
props.updateConfig.value
Json path for value to assign to related entities from current record
id
-
props.updateConfig.key
Json path of related entities to update
data.main.collections
-
props.updateConfig.addUrl
Url for adding relation to new entities
request/rpc/productw/AddToCollection
-
props.updateConfig.removeUrl
Url for removing relation from existing entities
request/rpc/productw/RemoveFromCollection
-
History Display
HistoryDisplay is a specialized editor for displaying historical versions of an item.
Runner Element Viewer
ElementViewer is a specialized editor for displaying details of an element added to a runner.
Last updated