This is a React component for use in Mozu.DevCenterUI to control the Kibo Application Behaviors
Usage in DevCenter
Component is published to NPM and loaded onto DevCenter using CDN unpkg.com
- Build component
npm run build
- Publish component
npm publish
Component Props
interface AppBehaviorModalProps {
behaviorCategories: BehaviorCategory[];
selectedBehaviors: SelectedBehavior[];
behaviorTemplates?: BehaviorTemplate[];
onBehaviorSave: (
selectedBehaviors: SelectedBehavior[]
) => void;
onCancel?: () => void;
}
Utils
Two helper methods are exported to the global window for use in Ext.JS
To Unmount and close the Modal
window['react-behavior-moda'].closeBehaviorModal()
To Mount and display the Component, pass component props to showBehaviorModal
window['react-behavior-moda'].showBehaviorModal(props)