예제 #1
0
        /// <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);
        }
예제 #2
0
        /// <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);
        }
예제 #3
0
        /// <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);
        }
예제 #4
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);
        }