foundation-utils.sync
Home > @genesislcap/foundation-utils > sync
sync() function
Creates a synchronization directive that binds a data source to an HTML element,
Signature:
export declare function sync<TSource = any, TReturn = any>(binding: Binding<TSource, TReturn>, conversionType?: ConversionType, eventName?: EventName, keyAttr?: string): CaptureType<TSource>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
binding |
Binding<TSource, TReturn> | |
|
conversionType |
(Optional) | |
|
eventName |
(Optional) | |
|
keyAttr |
string |
(Optional) |
Returns:
CaptureType<TSource>