public override void Init(TagHelperContext context) {
     base.Init(context);
     FormContext = context.GetFormContext();
     FormGroupContext = context.GetFormGroupContext();
     if (FormGroupContext != null)
         FormGroupContext.HasLabel = true;
     context.SetLabelContext(this);
     SrOnly = SrOnly ?? FormContext?.LabelsSrOnly;
 }
 public static void SetFormGroupContext(this TagHelperContext context, FormGroupTagHelper tagHelper) {
     if (context.Items.ContainsKey(FormGroupContext))
         context.Items[FormGroupContext] = tagHelper;
     else
         context.Items.Add(FormGroupContext, tagHelper);
 }
 public override void Init(TagHelperContext context)
 {
     base.Init(context);
     FormGroupContext = context.GetFormGroupContext();
     FormContext = context.GetFormContext();
     Size = Size ?? FormContext?.ControlSize;
 }
 public override void Init(TagHelperContext context) {
     base.Init(context);
     FormGroupContext = context.GetFormGroupContext();
     FormContext = context.GetFormContext();
 }