inventory-framework icon indicating copy to clipboard operation
inventory-framework copied to clipboard

Share config between frame, view, contexts and components

Open DevNatan opened this issue 1 year ago • 0 comments

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

DevNatan avatar Dec 31 '23 22:12 DevNatan