Class CustomComponentsRegistry

java.lang.Object
io.jmix.flowui.sys.registration.CustomComponentsRegistry

@Component("flowui_CustomComponentsRegistry") public class CustomComponentsRegistry extends Object
Registers external UI components or component loaders that should be used by the framework.

For instance, in the spring Configuration class create ComponentRegistration bean.

 @Configuration
 public class ComponentConfiguration {

     @Bean
     public ComponentRegistration extJmixButton() {
         return ComponentRegistrationBuilder.create(ExtJmixButton.class)
                 .replaceComponent(JmixButton.class)
                 .withComponentLoader("button", ExtButtonLoader.class)
                 .build();
     }
 }
 
See Also:
  • Field Details

  • Constructor Details

    • CustomComponentsRegistry

      public CustomComponentsRegistry()
  • Method Details

    • init

      @EventListener @Order(200) public void init(org.springframework.context.event.ContextRefreshedEvent event)
    • registerComponents

      protected void registerComponents()
    • registerComponent

      protected void registerComponent(ComponentRegistration registration)