Esempio n. 1
0
        /// <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);
        }
        public static AjaxCheckboxList <T> Multiselect <T>(this AjaxCheckboxList <T> arl, Action <OdropdownCfg> setCfg = null)
        {
            arl.Mod("awem.multiselect");
            var odcfg = new OdropdownCfg();

            if (setCfg != null)
            {
                setCfg(odcfg);
                arl.Tag(odcfg.ToTag());
            }

            return(arl);
        }
Esempio n. 3
0
 public static AjaxCheckboxList <T> NgModel <T>(this AjaxCheckboxList <T> h, string scopeProperty)
 {
     h.HtmlAttributes(null, new { type = "text", ng_model = scopeProperty, style = "display:none;" });
     return(h);
 }