inventory-framework
inventory-framework copied to clipboard
Share config between frame, view, contexts and components
Create a interface Configurable
containing ViewConfig getConfig()
that is implemented by IFViewFrame, RootView, IFContext and Component.
- Component is configured via
onSetup
(called once when component is ready to be rendered) and inherits from IFContext; - IFContext is configured via
onOpen
(called once before context render) and inherits from RootView; - RootView is configured via
onInit
(called once during view initialization) and inherits from IFViewFrame; - IFViewFrame is configured via
defaultConfig
.
This allows components to use component-specific configurations like interactionDelay
, cancelOnClick
and external features modifiers