const mixinafEfanXtra::EfanXtra
afEfanXtra::EfanXtra
(Service) - Service methods for discovering and rendering efan components.
- component
abstract EfanComponent component(Type componentType)
Returns an instance of the component, cast to an
EfanRenderer
.- componentTypes
abstract Type[] componentTypes(Str libraryName)
Returns the types of all components in the given library. A component type is a
const mixin
annotated with the@Component
facet.- libraries
abstract Str[] libraries()
Returns the names of all contributed efan component libraries.
- render
abstract Obj? render(Type componentType, Obj[]? initParams := null)
Renders the given component. The component's
initRender(...)
method is called with the giveninitParams
. If the@InitRender
method returns a non-null value, then that value is returned and rendering is aborted. Otherwise the rendered Str is returned.