/// <summary> /// Add property initializer. Returns this instance. /// </summary> public TuiElement AddProp(string name, TuiValue value) { Props = Props ?? new List <KeyValuePair <string, TuiValue> >(); Props.Add(new KeyValuePair <string, TuiValue>(name, value)); return(this); }
/// <summary> /// Add event handler. Returns this instance. /// </summary> public TuiElement AddEvent(string name, TuiValue value) { Events = Events ?? new List <KeyValuePair <string, object> >(); Events.Add(new KeyValuePair <string, object>(name, value)); return(this); }
public new TuiView AddEvent(string name, TuiValue value) => (TuiView)base.AddEvent(name, value);
/// <summary> /// Add construtor argument. Returns this instance. /// </summary> public TuiElement AddArg(TuiValue value) { Args = Args ?? new List <TuiValue>(); Args.Add(value); return(this); }
public new TuiView AddProp(string name, TuiValue value) => (TuiView)base.AddProp(name, value);
public new TuiView AddArg(TuiValue value) => (TuiView)base.AddArg(value);
public new TuiMenuItem AddEvent(string name, TuiValue value) => (TuiMenuItem)base.AddEvent(name, value);
public new TuiMenuItem AddProp(string name, TuiValue value) => (TuiMenuItem)base.AddProp(name, value);
public new TuiMenuItem AddArg(TuiValue value) => (TuiMenuItem)base.AddArg(value);