public override void Process(TagHelperContext context, TagHelperOutput output) { if (MultiPlaceholder.IsPresent()) { string id = output.Attributes["id"].Value?.ToString() ?? (output.Attributes["name"].Value?.ToString() ?? ""); string langkey = _rbacService.GetCurrentMenu().Fid + "_" + id; string placeholder = _multiLangService.GetOrAndMultiLangValue(MultiLanguageOriginEnum.MultiLangTag, langkey, MultiPlaceholder); output.Attributes.Add("data-placeholder", placeholder); } base.Process(context, output); }
public override void Process(TagHelperContext context, TagHelperOutput output) { if (MultiPlaceholder.IsPresent()) { string id = output.Attributes["id"].Value?.ToString() ?? (output.Attributes["name"].Value?.ToString() ?? ""); string langkey = _rbacService.GetCurrentMenu()?.Fid ?? "" + "_" + id; string placeholder = _multiLangService.GetOrAndMultiLangValue(MultiLanguageOriginEnum.MultiLangTag, langkey, MultiPlaceholder); output.Attributes.Add("placeholder", placeholder); } if (FapChecked && (output.Attributes["type"].Value?.ToString() ?? "").EqualsWithIgnoreCase("checkbox")) { output.Attributes.Add("checked", "checked"); } base.Process(context, output); }