Inheritance: Ext.Net.BaseItem
Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        public LoadMask.Builder LoadMask(LoadMask component)
        {
#if MVC
            component.ViewContext = this.HtmlHelper != null ? this.HtmlHelper.ViewContext : null;
#endif
            return(new LoadMask.Builder(component));
        }
Exemplo n.º 2
0
        public override void WriteJson(Newtonsoft.Json.JsonWriter writer, object value, JsonSerializer serializer)
        {
            LoadMask mask = value as LoadMask;

            if (mask != null && mask.ShowMask)
            {
                string jsonMask = new ClientConfig().Serialize(mask);

                if (jsonMask.IsEmpty() || jsonMask.Equals("{}"))
                {
                    writer.WriteValue(true);
                }
                else
                {
                    writer.WriteRawValue(jsonMask);
                }
            }
        }
Exemplo n.º 3
0
 public virtual void SetLoading(LoadMask load)
 {
     load.ShowMask = true;
     this.Call("setLoading", new JRawValue(new ClientConfig().Serialize(load)));
 }
Exemplo n.º 4
0
 /// <summary>
 ///
 /// </summary>
 public LoadMask.Builder LoadMask(LoadMask component)
 {
     return(new LoadMask.Builder(component));
 }
 /// <summary>
 ///
 /// </summary>
 public virtual TBuilder SetLoading(LoadMask load)
 {
     this.ToComponent().SetLoading(load);
     return(this as TBuilder);
 }
 /// <summary>
 ///
 /// </summary>
 public virtual TBuilder SetLoading(LoadMask load, bool targetEl)
 {
     this.ToComponent().SetLoading(load, targetEl);
     return(this as TBuilder);
 }
Exemplo n.º 7
0
 public virtual void SetLoading(LoadMask load)
 {
     load.ShowMask = true;
     this.Call("setLoading", new JRawValue(new ClientConfig().Serialize(load)));
 }