Beispiel #1
0
		/// <summary>
		/// Constructor for a new tab.  Typically a new tab is added via the method, 
		/// hence the constructor is internal.
		/// </summary>
		/// <param name="writer">Response we're writing the Tab JavaScript definition to</param>
		/// <param name="owner">Set of panes this pane is part of</param>
		/// <param name="idOrLocation">
		/// For static tabs this is the ID of the tab content pane (must be unique on the page).
		/// For dynamic tabs this is the URL where the content is loaded from.
		/// </param>
		/// <param name="title">Title of the tab heading (same as <see cref="Title"/> property)</param>
		/// <param name="isSelected">Flags whether this tab should be the selected one on page load (same as <see cref="IsSelected"/> property)</param>
		internal Pane(TextWriter writer, Panes owner, string idOrLocation, string title, bool isSelected)  {
			this.Panes = owner;
			this._Writer = writer;
			this.IDOrLocation = idOrLocation;
			this.Title = title;
			this.IsSelected = isSelected;
			this.Index = 0;
		}
Beispiel #2
0
		/// <summary>
		/// Constructor for a new tab.  Typically a new tab is added via the method, 
		/// hence the constructor is internal.
		/// </summary>
		/// <param name="writer">Response we're writing the Tab JavaScript definition to</param>
		/// <param name="owner">Set of panes this pane is part of</param>
		/// <param name="idOrLocation">
		/// For static tabs this is the ID of the tab content pane (must be unique on the page).
		/// For dynamic tabs this is the URL where the content is loaded from.
		/// </param>
		/// <param name="title">Title of the tab heading (same as <see cref="Title"/> property)</param>
		/// <param name="isActive">Flags whether this tab should be the active one on page load (same as <see cref="IsActive"/> property)</param>
		internal Pane(TextWriter writer, Panes owner, string idOrLocation, string title, bool isActive)  {
			this.Panes = owner;
			this._Writer = writer;
			this.IDOrLocation = idOrLocation;
			this.Title = title;
			this.IsActive = isActive;
			this.Index = 0;
			this.Visible = true;
		}
Beispiel #3
0
		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="writer">Response object to write to</param>
		/// <param name="id">ID of the tabs collection, this must be unique for the page</param>
		public Tabs(TextWriter writer, string id) {
			this.PlugInName = "tabs";
			this.Writer = writer;
			this.ID = id;
			this.Options = new Options(this);
			this.Events = new Events(this);
			this.Methods = new Methods(this);
			this.Rendering = new Rendering(this);
			this._Panes = new Panes(this);
		}