Geospatial Portal User Interface consists of some predefined sections and elements, which are provided together with the Map Window. The basic interface configuration is available through the Administration Console. The parts of interface such as Toolbar(s), Sidebar(s), Banner etc. may be modified, disabled or extended. Even some of the map elements (like Crosshair, Scale Bar etc.) may be switched on/off. A substantial scope of features can be predefined by the initial configuration and modified programatically.
API.js file shall be delivered within the Application project. The recommended way is to put it in the js folder in the Application and refer in the relevant *.aspx templates.
The most useful section of JS API will be $GP.ui section which introduces the set of methods and objects that provide functionality to display and get handles to some of the interface elements. However, the other chapters of JS API may also be helpful while providing custom modifications.