Example #1
0
        public override void Process(TagHelperContext context, TagHelperOutput output)
        {
            output.TagName = "input";
            var input =
                new Input(new List <string>
            {
                "wyj-fitem"
            })
            {
                Name        = "key",
                Id          = "toolbar",
                Placeholder = "请输入搜索关键词"
            };

            output.AddAttributes(input);

            output.TagMode = TagMode.SelfClosing;
        }