/// <summary> /// Odropdown Awesome Mod /// </summary> /// <typeparam name="T"></typeparam> /// <param name="ahtml"></param> /// <param name="prop"></param> /// <param name="setCfg"></param> /// <returns></returns> public static AjaxRadioList <T> Odropdown <T>(this AwesomeHtmlHelper <T> ahtml, string prop, Action <OdropdownCfg> setCfg = null) { var res = ahtml.AjaxRadioList(prop).Mod("awem.odropdown"); var odcfg = new OdropdownCfg(); if (setCfg != null) { setCfg(odcfg); res.Tag(odcfg.ToTag()); } return(res); }
/// <summary> /// menu dropdown extension /// </summary> /// <typeparam name="T"></typeparam> /// <param name="arl"></param> /// <param name="setCfg"></param> /// <returns></returns> public static AjaxRadioList <T> MenuDropdown <T>(this AjaxRadioList <T> arl, Action <OdropdownCfg> setCfg = null) { var res = arl.Mod("awem.menuDropdown"); var odcfg = new OdropdownCfg(); if (setCfg != null) { setCfg(odcfg); res.Tag(odcfg.ToTag()); } return(res); }
/// <summary> /// color dropdown extension /// </summary> /// <typeparam name="T"></typeparam> /// <param name="arl"></param> /// <param name="setCfg"></param> /// <returns></returns> public static AjaxRadioList <T> ColorDropdown <T>(this AjaxRadioList <T> arl, Action <OdropdownCfg> setCfg = null) { arl.Mod("awem.colorDropdown"); var odcfg = new OdropdownCfg(); if (setCfg != null) { setCfg(odcfg); arl.Tag(odcfg.ToTag()); } return(arl); }
/// <summary> /// buttongroup extension /// </summary> /// <typeparam name="T"></typeparam> /// <param name="arl"></param> /// <param name="setCfg"></param> /// <returns></returns> public static AjaxCheckboxList <T> ButtonGroup <T>(this AjaxCheckboxList <T> arl, Action <OdropdownCfg> setCfg = null) { arl.Mod("awem.btnGroupChk"); var odcfg = new OdropdownCfg(); if (setCfg != null) { setCfg(odcfg); arl.Tag(odcfg.ToTag()); } return(arl); }