Inheritance: StateManagedItem.Config
        /// <summary>
        ///
        /// </summary>
        public ListItem.Builder ListItem(ListItem.Config config)
        {
#if MVC
            return(new ListItem.Builder(new ListItem(config)
            {
                ViewContext = this.HtmlHelper != null ? this.HtmlHelper.ViewContext : null
            }));
#else
            return(new ListItem.Builder(new ListItem(config)));
#endif
        }
示例#2
0
 /// <summary>
 ///
 /// </summary>
 public Builder(ListItem.Config config) : base(new ListItem(config))
 {
 }
示例#3
0
 /// <summary>
 ///
 /// </summary>
 public ListItem.Builder ListItem(ListItem.Config config)
 {
     return(new ListItem.Builder(new ListItem(config)));
 }