set()
Sets a property value or binding on each view instance after it is created.
set<
K extends string &
keyof {
[P in keyof TView as TView[P] extends Function ? never : P]: TView[P];
},
>(name: K, valueOrBinding: BindingOrValue<TView[K]>): void;
Parameters
- name — The name of the property to set
- valueOrBinding — The value or binding to set for the property
Description
This method allows setting either a static value or a binding for any property of the view. If a binding is provided, it will be automatically bound after the view is created.
Related
class Initializer static
A class that handles the initialization and configuration of views, as part of a view builder.
