|
MoreMotion Face API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--MoreMotionObject
|
+--Navigator
Represents a Data Source Navigator.
Defined in Navigator.js
| Field Summary | |
Object |
callbackCustomData
The custom data object to pass to the callback function defined with this.props.callbackFunc property. |
Object |
callbackFunc
The callback function to be called after the ajax navigation. |
HTMLElement |
cpelm
Handle to the "currentPage" element whose "mo:type" is "NavigatorCurrentPage". |
HTMLElement |
ippelm
Handle to the "itemsParPage" element whose "mo:type" is "NavigatorItemsPerPage". |
boolean |
isNavigator
|
HTMLElement |
pielm
Handle to the "pageIndex" element whose "mo:type" is "NavigatorPageIndex". |
HTMLElement |
ppbelm
Handle to the "pagesPerBlock" element whose "mo:type" is "NavigatorPagesPerBlock". |
Object |
props
Navigator Properties Object. |
| Fields inherited from class MoreMotionObject |
node, name, type, isMoreMotionObject, props
|
| Constructor Summary | |
Navigator(node)
|
|
| Method Summary | |
void
|
addRequestParameter(name, value)
Adds the given parameter to the navigation request parameters. |
void
|
base(node)
|
void
|
init()
|
void
|
navigateTo(page, focusTo)
Navigates to the specified page. |
String
|
setCommandName(name)
Sets the name command to submit with "_cmd" parameter. |
| Methods inherited from class MoreMotionObject |
saveProps, setProp, boolProp, numberProp, charProp, getIValue, setIValue
|
| Field Detail |
Object callbackCustomData
Object callbackFunc
HTMLElement cpelm
HTMLElement ippelm
boolean isNavigator
HTMLElement pielm
HTMLElement ppbelm
Object props
| dataSource | The name of the data source to navigate over |
| submitType | The Submit Type of the navigation request. The valid values are:
|
| pagingInfo | This property contains paging info for the specified data source. It contains
the following sub-properties that are separated with semicolumn chars.
noi:340;cp:5;ipp:10;ppb:5;lp:false;mp:true;fp:51;tp:60
|
| focusTo | The code of the input element which should gain focus
after the navigation. The codes are:
|
| callbackFunc | The name of the Javascript function to be called after the Ajax navigation |
| errorHandler | The name of the Javascript function to be called to handle the errors during the Ajax navigation |
| commandName | The name of the Ajax ProcessCommand to use for the Ajax navigation |
| beforeSubmitFunc | The name of the javascript function to be called before the navigate request is submitted. The function receives Navigator object as the parameter. |
| requiredBlocks | The names of the blocks (separated with commas) to be validated before submitting the form with this command |
| classPrefix |
The prefix of the CSS Class. Please note that a set of CSS Styles should be supplied in a CSS
file where there are styles that have certain suffixes and the same prefixes.
The CSS style classes that must be provided: classPrefix_currpage_normal {} - The style of the currentPage element
classPrefix_currpage_onlastpage {} - The style of the currentPage element when navigator is on the last page
classPrefix_pageindex_normal {} - The style of a page index element
classPrefix_pageindex_selected {} - The style of the page index element that corresponsd to the current page
classPrefix_itemsperpage {} - The style of the itemsPerPage element
classPrefix_pagesperblock {} - The style of the pagesPerBlock element
|
| Constructor Detail |
Navigator(node)
node - the DOM Element node that is marked as a Navigator by means of "mo:type" attribute with a value of "Navigator".
| Method Detail |
void addRequestParameter(name, value)
name - The name of the parameter
value - The value of the parameter
void base(node)
node - the DOM Element node that is wrapped by this object
void init()
void navigateTo(page, focusTo)
page - The page to navigate. The valid values are "nextPage", "previousPage", "firstPage", "lastPage", "nextBlock", "previousBlock" or a page number.
focusTo - The code of the input element which should gain focus after the navigation. Codes: cp: currentPage Element, ipp: itemsPerPage Element, ppb: pagesPerBlock Element
String setCommandName(name)
name - The name of the command
|
MoreMotion Face API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||