bindDynamic

fun <ContentType : Any, T> MountConfigurationScope<ContentType>.bindDynamic(dynamicValue: DynamicValue<T>?, bindCall: BindDynamicScope.(ContentType, T) -> UnbindDynamicFunc)

Creates a binding between the dynamic value, and the content’s property.

Parameters

dynamicValue

value that will be set on the Content

bindCall

function or function reference that will set the dynamic value on the content


fun <ContentType : Any, T> MountConfigurationScope<ContentType>.bindDynamic(dynamicValue: DynamicValue<T>?, setter: (ContentType, T) -> Any?, default: T)

Creates a binding between the dynamic value, and the content’s property.

Parameters

dynamicValue

value that will be set on the Content

setter

function reference that will set the dynamic value on the content


fun <ContentType : Any, T> MountConfigurationScope<ContentType>.bindDynamic(dynamicValue: DynamicValue<T>?, setter: KMutableProperty1<ContentType, T>, default: T)

Creates a binding between the dynamic value, and the content’s property.

Parameters

dynamicValue

value that will be set on the Content

setter

property reference that will set the dynamic value on the content


inline fun <ContentType : Any, T> MountConfigurationScope<ContentType>.bindDynamic(dynamicValue: DynamicValue<T?>?, setter: (ContentType, T?) -> Any?)

Creates a binding between the dynamic value, and the content’s property. The default value of the property is assumed to be null, so after unbind, null value will be set to the Content.

Parameters

setter

function reference that will set the dynamic value on the content


inline fun <ContentType : Any, T> MountConfigurationScope<ContentType>.bindDynamic(dynamicValue: DynamicValue<T?>?, setter: KMutableProperty1<ContentType, T?>)

Creates a binding between the dynamic value, and the content’s property. The default value of the property is assumed to be null, so after unbind, null value will be set to the Content.

Parameters

setter

property reference that will set the dynamic value on the content