Templates
Your Wire's HTML. Simple as that. Honestly.
Last updated
Was this helpful?
Your Wire's HTML. Simple as that. Honestly.
Last updated
Was this helpful?
require a template that contains the HTML to be rendered.
If you haven't specified your template file name inside your Wire using template, a template will be implicitly loaded based on the Wire's file name.
For the example above, the template ./views/wires/tasklist.cfm
will be rendered.
You can specify the path to your Template using template
.
In CBWIRE 1.x, you would define the template path using view
but this has been deprecated and template
should be used going forward.
Be sure your template includes a single outer element such as<div>
.
If an outer element is not detected, an OuterElementNotFoundexception is thrown.
You can use something other than <div></div>.
Instead of creating a .cfm template, you can define an onRender() method on your .
See the page for additional details.
Within your , you can call the method noRender()
to prevent your template from re-rendering. This can reduce the returned payload size for actions that do not change the UI.