Interface IPropsDelegate
interface IPropsDelegate
Extends com.amazon.apmf.IStandard
Delegate for registering props and handling prop value changes.
Methods
registerProps()
Build out any number of custom properties of various types for the view with the propsRegistryBuilder.IPropsRegistry*registerProps(IPropsRegistryBuilder*propsRegistryBuilder)
Parameters
propsRegistryBuilder
IPropsRegistryBuilder* — Required
Builder for props registry
Returns
IPropsRegistry*
The final object with all the props,
to be registered, for a keplerscript view manager.
updateProps()
Lifecycle method called when props should change, for a view instance.voidupdateProps(com.amazon.kepler.uitoolkit.view.IView*view,IJsObject*newPropsUpdates)
Parameters
view
com.amazon.kepler.uitoolkit.view.IView* — Required
Root node of the component view.
Perform operations such as add/remove children on it,
according to the prop updates.
newPropsUpdates
IJsObject* — Required
IJsObject containing
the names and new values of all the changed props,
as key-value pairs.

