/// <summary> /// Initializes a new instance of the <see cref="FormHtmlHelper{TModel}"/> class. /// </summary> /// <param name="helper">The helper.</param> public FormHtmlHelper(HtmlHelper <TModel> helper) : base(helper) { var resolver = DependencyResolver.Current; _tagBuilderFactory = resolver.GetService <ITagBuilderFactory>(); }
/// <summary> /// Map a factory to a tag /// </summary> /// <param name="tagName">Name of HTML tag to generate</param> /// <param name="type">Sub type (for instance the "type" attribute of INPUT tags)</param> /// <param name="factory">Factory used to produce tag builders</param> public void Map(string tagName, string type, ITagBuilderFactory factory) { if (tagName == null) throw new ArgumentNullException("tagName"); if (type == null) throw new ArgumentNullException("type"); if (factory == null) throw new ArgumentNullException("factory"); _tagBuilders[tagName] = factory; }
public SettingsFormBuilder(IShapeFactory shapeFactory, ITagBuilderFactory tagBuilderFactory, IFormManager formManager, Lazy <IEnumerable <IThemeSettingProvider> > providers) { _shapeFactory = shapeFactory; _tagBuilderFactory = tagBuilderFactory; _formManager = formManager; _providers = new Lazy <IDictionary <string, IThemeSettingProvider> >(() => InitializeProvidersDictionary(providers)); }
public ElementShapes( ITagBuilderFactory tagBuilderFactory, Work <IShapeFactory> shapeFactory, Work <ITokenizer> tokenizer) { _tagBuilderFactory = tagBuilderFactory; _shapeFactory = shapeFactory; _tokenizer = tokenizer; }
public ElementShapes( ITagBuilderFactory tagBuilderFactory, Work<IShapeFactory> shapeFactory, Work<ITokenizer> tokenizer) { _tagBuilderFactory = tagBuilderFactory; _shapeFactory = shapeFactory; _tokenizer = tokenizer; }
public BasicDataSelectForm( ICRMContentOwnershipService crmContentOwnershipService, ITagBuilderFactory tagBuilderFactory, IBasicDataService basicDataService, ITokenizer tokenizer) { this.crmContentOwnershipService = crmContentOwnershipService; this.basicDataService = basicDataService; this.tokenizer = tokenizer; this.tagBuilderFactory = tagBuilderFactory; this.T = NullLocalizer.Instance; }
public MenuShapes( IWorkContextAccessor workContextAccessor, RequestContext requestContext, IMenuService menuService, IContentManager contentManager, INavigationManager navigationManager, ITagBuilderFactory tagBuilderFactory) { this.workContextAccessor = workContextAccessor; this.requestContext = requestContext; this.tagBuilderFactory = tagBuilderFactory; this.navigationManager = navigationManager; this.contentManager = contentManager; this.menuService = menuService; T = NullLocalizer.Instance; }
/// <summary> /// Map a factory to a tag /// </summary> /// <param name="tagName">Name of HTML tag to generate</param> /// <param name="type">Sub type (for instance the "type" attribute of INPUT tags)</param> /// <param name="factory">Factory used to produce tag builders</param> public void Map(string tagName, string type, ITagBuilderFactory factory) { if (tagName == null) { throw new ArgumentNullException("tagName"); } if (type == null) { throw new ArgumentNullException("type"); } if (factory == null) { throw new ArgumentNullException("factory"); } _tagBuilders[tagName] = factory; }
public HtmlHelper(ITagBuilderFactory tagBuilderFactory) { _tagBuilderFactory = tagBuilderFactory; }
/// <summary> /// Map a factory to a tag /// </summary> /// <param name="tagName"></param> /// <param name="factory"></param> public void Map(string tagName, ITagBuilderFactory factory) { _tagBuilders[tagName] = factory; }
public EditorShapes(ITagBuilderFactory tagBuilderFactory) { _tagBuilderFactory = tagBuilderFactory; }
public DateTimeEditorShapes(ITagBuilderFactory tagBuilderFactory) { _tagBuilderFactory = tagBuilderFactory; }