ImageGear.Web.UI Namespace Client API Library > ImageGear.Web.UI Namespace > ImGearPageCollection class : addPage Method |
ASP.NET Ajax Javascript (Specification) | |
---|---|
function addPage( page : ImGearPage ) : (Any); |
ASP.NET Ajax Javascript (Usage) | |
---|---|
var resultVar = instanceOfImGearPageCollection.addPage(ImGearPage); |
This function appends the page passed in as parameter to the collection. It is similar to the standard JavaScript Array.push() function.
After this function has added the page to the collection, it will raise the pageAdded event.
Note: A page object instance can be added only to one ImGearThumbnailList control in a web page. A page object instance must be unique within a ImGearThumbnailList control on an entire web page. Both of these constraints arise because of the selected property. The first constraint exists because a single Page object can either be selected or not-selected and it makes no sense to allow that to span multiple ImGearThumbnailList controls. The second constraint exists because of the "selectedPages" collection on the ImGearThumbnailList control. Each thumbnail in the control should be individually selectable, but that will be impossible to represent if two of them are represented by the same object.