Пример #1
0
        /// <summary>
        /// dropdown popup
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="o"></param>
        /// <param name="setCfg"></param>
        /// <returns></returns>
        public static InitPopupForm <T> Mod <T>(this InitPopupForm <T> o, Action <PopupCfg> setCfg = null)
        {
            var cfg = new PopupCfg();

            if (setCfg != null)
            {
                setCfg(cfg);
            }

            o.Tag(cfg.ToTag());
            return(o);
        }
Пример #2
0
 public static InitPopupForm <T> DropdownPopup <T>(this InitPopupForm <T> o)
 {
     o.Tag(new { DropdownPopup = true });
     return(o);
 }