The Page class gives you access to pages in D3PLOT. More...
The D3PLOT JavaScript API provides many class constants, properties and methods. For Arup to
be able to extend and enhance the API in the future any constant, property or method names beginning with a lowercase
or uppercase letter are reserved.
If you need to add your own properties or methods to one of the existing classes then to avoid any potential future conflict you
should ensure that the name begins with either an underscore (_) or a dollar sign ($) or the name is prefixed with your
own unique identifier.
For example if company 'ABC' need to add a property called 'example' then to avoid any potential future conflict use one of:
| Name | Type | Description |
| layout | constant | The page layout. See Page layout constants |
| number (read only) | integer | The page number |
| x | integer | The number of windows in X for the LAYOUT_CUSTOM case |
| y | integer | The number of windows in Y for the LAYOUT_CUSTOM case |
Details of functionsFirst() [static]DescriptionReturns the Page object for the first page in D3PLOT |
No arguments
ReturnsPage object Return typePage |
ExampleTo get the Page object for the first page: var p = Page.First();
|
GetFromID(page number[integer]) [static]DescriptionReturns the Page object for a page ID |
number of the page you want the Page object for
ReturnsPage object Return typePage |
ExampleTo get the Page object for page number 1 var p = Page.GetFromID(1);
|
Last() [static]DescriptionReturns the Page object for the last page in D3PLOT |
No arguments
ReturnsPage object Return typePage |
ExampleTo get the Page object for the last page: var p = Page.Last();
|
Next()DescriptionReturns the next page (or null if there is not one) |
No arguments
ReturnsPage object Return typePage |
ExampleTo get the page after page p: p = p.Next();
|
Previous()DescriptionReturns the previous page (or null if there is not one) |
No arguments
ReturnsPage object Return typePage |
ExampleTo get the page before page p: p = p.Previous();
|
Show()DescriptionShows this page in D3PLOT |
No arguments
ReturnsNo return value |
ExampleTo show page p: p.Show();
|
Total() [static]DescriptionReturns the total number of pages in D3PLOT. |
No arguments
ReturnsTotal number of pages Return typeinteger |
ExampleTo get total number of pages: var total = Page.Total();
|