public void RegisterControls(ControlWriter controlWriter)
 {
     controlWriter.RegisterControl(SectionModel.SpecializationTypeId, control => new SectionTemplate(new SectionModel(control), controlWriter));
     controlWriter.RegisterControl(ButtonControlModel.SpecializationTypeId, control => new ButtonControlTemplate(new ButtonControlModel(control)));
     controlWriter.RegisterControl(TableControlModel.SpecializationTypeId, control => new TableControlTemplate(new TableControlModel(control)));
     controlWriter.RegisterControl(PaginationControlModel.SpecializationTypeId, control => new PaginationControlTemplate(new PaginationControlModel(control), Template.ExecutionContext.EventDispatcher));
     controlWriter.RegisterControl(FormModel.SpecializationTypeId, control => new FormTemplate(new FormModel(control), controlWriter, Template.ExecutionContext.EventDispatcher));
     controlWriter.RegisterControl(NavbarModel.SpecializationTypeId, control => new NavbarTemplate(new NavbarModel(control), (IApplication)Template.ExecutionContext, controlWriter));
 }
 public AngularComponentHtmlTemplate(IOutputTarget outputTarget, Intent.Modelers.WebClient.Angular.Api.ComponentModel model) : base(TemplateId, outputTarget, model)
 {
     ControlWriter = new ControlWriter();
     ControlWriter.RegisterControl(DisplayComponentModel.SpecializationTypeId, element => new DisplayComponentTemplate(new DisplayComponentModel(element), this));
     ControlWriter.RegisterControl(RouterOutletModel.SpecializationTypeId, element => new RouterOutletTemplate(new RouterOutletModel(element)));
 }
예제 #3
0
 public void RegisterControls(ControlWriter controlWriter)
 {
     controlWriter.RegisterControl(LoginMenuModel.SpecializationTypeId, control => new LoginMenuTemplate(new LoginMenuModel(control)));
 }