facet classafEfanExtra::Component

sys::Obj
  afEfanExtra::Component : sys::Facet

@FacetMeta { inherited=true }
@Serializable

Annotate your efan Components with @Component. By default, afEfanExtra looks for an efan template with the same name as the component class.

template

Source

const Uri? template

Use to explicitly set the location of the efan template. The Uri may take several forms:

  • if absolute, the template is resolved, e.g. fan://acmePod/templates/Notice.efan
  • if relative, the template is assumed to be on the file system, e.g. etc/templates/Notice.efan
  • if absolute, the template is assumed to be a pod resource, e.g. /templates/Notice.efan