Facets are non-visual components that add supplementary behavior to the view or its components.
The framework provides the following facets:
The application or an add-on can provide its own facets. To create a custom facet, follow the steps below:
Create an interface extending
Create an implementation class based on
Create a Spring bean implementing the
io.jmix.flowui.xml.facet.FacetProviderinterface parameterized by the type of your facet.
Create an XSD to be used in screens XML.
Optionally, mark the facet interface and its methods with metadata annotations to add support for the facet in the Jmix UI inspector panel of the Studio’s view designer.
QueryParametersFacet classes of the framework can be good examples of creating a facet.