Skip to main content

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

ConversionType

(Optional)

eventName

EventName

(Optional)

keyAttr

string

(Optional)

Returns:

CaptureType<TSource>