update()
Registers an update handler for a value or binding.
update(
valueOrBinding: any,
handle: (this: TView, value: any) => void,
): void;
Parameters
- valueOrBinding — The value or binding to use
- handle — The handler function to call when the value changes
Description
This method allows you to specify a handler that will be called immediately for a view instance (for a static value), or whenever a bound value changes (for a binding). This is useful for implementing a fluent interface that isn’t mapped directly to a single view property.
Related
class Initializer static
A class that handles the initialization and configuration of views, as part of a view builder.
