Options
All
  • Public
  • Public/Protected
  • All
Menu

Properties to be used with the FunctorProps component.

Hierarchy

  • FunctorProps

Index

Properties

Optional arg

arg?: any

Optional argument to be passed to the rendering function. Only one argument is allowed. If there is a need to pass several parameters, use either array or object.

func

Function to be called to render content. Functions wrapped by the Functor component can accept at most one argument.

Optional thisArg

thisArg?: any

The "this" argument for calling the function. If it is not provided, the current component is used. This allows passing methods of the current component as rendering functions without the need to bind them to "this".

Optional watch

watch?: boolean

Optional flag indicating whether or not the function should be wrapped in a watcher so that it can be re-invoked when one of the observed triggers changes its value. The flag is Boolean but is used as a tri-value:

  • if the flag is undefined, the function will be wrapped or not wrapped in a watcher depending on whether it has the {@link @noWatcher} decorator applied to it.
  • if the flag is true, the function will be wrapped in a watcher regardless of the {@link @noWatcher} decorator.
  • if the flag is false, the function will NOT be wrapped in a watcher regardless of the {@link @noWatcher} decorator.