/// <summary> /// /// </summary> /// <param name="item"></param> public void SetActiveTab(TabStripItem item) { if (this.ItemID.IsNotEmpty()) { this.Call("setActiveTab", item.ItemID); } else { this.Call("setActiveTab", this.Items.IndexOf(item)); } }
/// <summary> /// /// </summary> /// <param name="item"></param> public void Remove(TabStripItem item) { if (this.ItemID.IsNotEmpty()) { this.Call("remove", item.ItemID); } else { this.Call("remove", this.Items.IndexOf(item)); } if (this.Items.Contains(item)) { this.Items.Remove(item); } }
/// <summary> /// /// </summary> /// <param name="index"></param> /// <param name="item"></param> public void InsertItem(int index, TabStripItem item) { this.Items.Add(item); this.Call("insert", index, new JRawValue(new ClientConfig().Serialize(item))); }
/// <summary> /// /// </summary> /// <param name="item"></param> public void AddItem(TabStripItem item) { this.Items.Add(item); this.Call("add", new JRawValue(new ClientConfig().Serialize(item))); }
private void Items_AfterItemAdd(TabStripItem item) { item.Owner = this; }
/// <summary> /// /// </summary> public TabStripItem.Builder TabStripItem(TabStripItem component) { return(new TabStripItem.Builder(component)); }