Type aliases
RenderingFunction
RenderingFunction: function
Type declaration
-
- (frag: DocumentFragment, data: any, opts?: object): void
-
Parameters
-
frag: DocumentFragment
-
data: any
-
Optional opts: object
Returns void
ValueFunction
ValueFunction: function
Type declaration
-
- (this: any): string | number | boolean
-
Parameters
Returns string
|
number
|
boolean
ValueObject
ValueObject: object
ValueType
ValueType: string | number | boolean | null
A rendering function.
This function takes a document fragment and data, and may modify the fragment using the data. Additionally it may use any rendering options passed. It should not have a
this
context, and it should not have a return value.If this function does have a
this
context, athis_arg
may be passed to {@link xjs_HTMLTemplateElement#render}. Any return value of the function does nothing.the template content with which to render
the data to fill the template upon rendering
additional rendering options