Page Attributes
From Lianjapedia
Revision as of 11:05, 5 July 2016 by Yvonne.milne (Talk | contribs)
Contents
Getting and Setting Attributes
The setAttribute(name, value) method can be used to set the value of an Attribute:
Lianja.get("pageid").setAttribute("title","Page1")
Note: the shortened form setAttr(name,value) is also available.
The getAttribute(name) method can be used to get the value of an Attribute:
cTitle = Lianja.get("pageid").getAttribute("title")
Note: the shortened form getAttr(name) is also available.
Details
Attribute | Description | Name | Type |
---|---|---|---|
Name | The unique name for this page. | id | Character |
Meta types | A comma separated list of metatype names. | metatypes | Character |
Title | The menu title for this page. | title | Character |
Menu icon image | The menu icon image for the title (png | jpg | gif). Use app:/imagename.ext for app specific images. Note that in the mobile client this icon will be displayed in the PageBar. |
||
Autosave in Page Library | Always save this page to the UI Page Library when an App is saved. | ||
Query Page | When this is checked, no data is shown until a search or filter has been performed. | queryPage | Boolean |
Mobile login Page | When this is checked, this page will be used as the Mobile login page. | loginPage | Boolean |
Deferred load | When this is checked, this page will be loaded with data only when it is first activated (speeds up App load time). | deferredLoad | Boolean |
Refresh when activated | Refresh all sections on this page when the page is activated. | ||
Full page edit | Edit all editable sections on this page when the page is edited. |
Appearance
Attribute | Description | Name | Type |
---|---|---|---|
Current page height | Current page height. | ||
Background color | Page background color. | backColor | Character |
Foreground color | Page foreground color. | foreColor | Character |
CSS style | CSS style (separate attributes with ; or use app:/filename.css). | cssStyle | Character |
Gradient colors | Render the background color as a gradient (True | False). | pageGradient | Boolean |
Gradient type | Specify the gradient type. | pageGradientType | Int |
Gradient start color | Gradient start color. | pageFromColor | Character |
Gradient end color | Gradient end color. | pageToColor | Character |
Transparency | Specify a transparency percentage from 0 to 100. | transparency | Int |
Background image | The background image for the page (png | jpg | gif). Use app:/imagename.ext for app specific images. |
||
Stretch image | Stretch the background image to fill the page (True | False). | ||
Margin | Margin size around the page. | ||
Hide page from menu | Hide page from menu at runtime. | ||
Accordion behavior | Render as accordion sections (True | False). | ||
Use Accordions | Render as accordion sections on low resolution displays. | ||
Use Accordions height | Render as accordion sections on low resolution displays less than this height. | ||
Stacked behavior at runtime | Treat accordion sections as stacked at runtime allowing the sections to be made raised from the Navigation Panel. | ||
Stretch last section | Stretch last section to bottom of page. | ||
Stretch last section min height | If the last section is less than this height, then set it to this height and show page vertical scrollbar. | ||
Hide actionbar | Hide the actionbar. | ||
Hide navigation bar slider | Hide the navigation bar slider. | ||
Sync actionbar buttons | Keep the actionbar buttons in sync with the current data position. Turn this off to improve performance with large amounts of data. | ||
Show options icon | Show the options menu icon in the actionbar. | ||
Custom options menu | Custom options menu (comma separated list of values). | ||
Show scrollbar | Show a vertical scrollbar for the page. | ||
Show scrollbar height | Show vertical scrollbar on low resolution displays less than this height. |
Header
Attribute | Description | Name | Type |
---|---|---|---|
Visible | Header visible (True | False). | ||
Caption | Header caption. | ||
Height | Header height. | ||
Background color | Header background color. | ||
Foreground color | Header foreground color. | ||
Header bottom border | Display Header bottom border (True | False). | ||
Header bottom border color | Header bottom border color. | ||
Header image | The image for the Header (png | jpg | gif). Use app:/imagename.ext for app specific images. |
||
Gradient colors | Render the Header background color as a gradient (True | False). | ||
Gradient type | Specify the gradient type. | ||
Gradient start color | Gradient start color. | ||
Gradient end color | Gradient end color. | ||
Hide header icon | Hide the header icon in the page Header (True | False). | ||
Hide search box | Hide the search box in the page Header (True | False). | ||
Minimum search text length | Minimum number of characters to type in the search box before search is made. | ||
Hide notifications icon | Hide the notifications icon in the page Header (True | False). | ||
Hide fullscreen icon | Hide the fullscreen icon in the page Header (True | False). | ||
Hide share icon | Hide the share icon in the page Header (True | False). | ||
Hide home icon | Hide the home icon in the page Header (True | False). |
Attribute | Description | Name | Type |
---|---|---|---|
Visible | Footer visible (True | False). | ||
Height | Footer height. | ||
Background color | Footer background color. | ||
Foreground color | Footer foreground color. | ||
Footer image | The image for the Footer (png | jpg | gif). Use app:/imagename.ext for app specific images. |
||
Gradient colors | Render the Footer background color as a gradient (True | False). | ||
Gradient type | Specify the gradient type. | ||
Gradient start color | Gradient start color. | ||
Gradient end color | Gradient end color. | ||
Gadget | The custom gadget to be rendered in the Footer. | ||
Refresh interval | The interval in seconds that the Footer content will be refreshed. |
Left Sidebar
Attribute | Description | Name | Type |
---|---|---|---|
Show left sidebar | Show left sidebar (True | False). | ||
Collapse left sidebar | Collapse left sidebar when the App is first loaded (True | False). | ||
Width | Left sidebar width. | ||
Show left sidebar logo image | Show left sidebar logo image (True | False). | ||
Logo image | The logo displayed at the top of the left sidebar (png | jpg | gif). Use app:/imagename.ext for app specific images. |
||
Show login panel | Show the login panel in the left sidebar (True | False). | ||
Show Apps | Show the Apps menu in the left sidebar (True | False). | ||
Show Apps Caption | Show the Apps caption above the Apps menu (True | False). | ||
Show Menu | Show the page menu in the left sidebar (True | False). | ||
Show Recent Items | Show Watches, Favorites, Recently Viewed/Modified items and Instant Selections in the left sidebar (True | False). | ||
Background color | Left sidebar background color. | ||
Foreground color | Left sidebar foreground color. | ||
Border color | Left sidebar border color. | ||
Favorite items | The number of Favorites to display. | ||
Recently viewed items | The number of Recently Viewed items to display. | ||
Recently modified items | The number of Recently Modified items to display. | ||
Watched items | The number of Watched items to display. | ||
Refresh interval | The interval in seconds that the Instant Selections content will be refreshed. |
Attribute | Description | Name | Type |
---|---|---|---|
Show navigation panel | Show a Navigation panel on the left side of the page (True | False). By default this is a TreeGrid, so you can load it in the load delegate for the page and structure it as a Grid or a Tree. |
||
Collapsable | Enable collapsing and expanding for the Navigation panel (True | False). | ||
Collapse when first loaded | Hide Navigation panel when first loaded. Use $("page:yourpagename?action=shownavigationpanel") to show it and $("page:yourpagename?action=hidenavigationpanel") to hide it again. |
||
Position on page | Navigation panel position on page(Left | Right). | ||
Show caption | Show Navigation panel caption (True | False). | ||
Caption height | Navigation panel caption height. | ||
Caption | Navigation panel caption. | ||
Width | Navigation panel width. | ||
Custom UI page | Specify an (optional) custom UI Page from the UI Page Library to embed into the Navigation panel. | ||
Show child indicators | Show child indicators. | ||
Alternating row colors | Alternating row colors. | ||
Double click to select | Check this if you want the selection delegate to be called on a double-click rather than a single click. | ||
Column headers | Specify a comma separated list of column headers. | ||
Data source | Specify a comma separated list of items to load as caption#icon, a SQL SELECT statement to load from a data source or specify a .rsp, .jssp or html page. Note that you can optionally load the Navigation panel in the load delegate for the page. |
||
Selection column | When using a multi column TreeGrid, specify the column you want to select when calling the selection delegate. | ||
Item sync expression | Specify an expression to evaluate to keep the TreeGrid in sync while data is navigated in the page. | ||
Selection delegate | Specify a delegate to call when a row is clicked. Note that you can use an 'inline' delegate like this: $("section:yoursectionid?action=search&text={}") Notice how {} is used to substitute the value of the item selected. |
||
Show ActionBar | Show the actionbar at the bottom of the Navigation panel (True | False). | ||
Add delegate | Specify a delegate to call when the 'Add' icon is clicked. Note that you can use an 'inline' delegate like this: $("section:yoursectionid?action=add"). |
||
Delete delegate | Specify a delegate to call when the 'Delete' icon is clicked. Note that you can use an 'inline' delegate like this: $("section:yoursectionid?action=delete"). |
||
Row height | Row height for the Tree items in the Navigation panel. | ||
Font size | Font size for the Tree items in the Navigation panel. | ||
CSS style | CSS style for the Navigation panel and its Tree (separate attributes with ; or use app:/filename.css). |
Right Sidebar
Attribute | Description | Name | Type |
---|---|---|---|
Show right sidebar | Show right sidebar (True | False). | ||
Collapse right sidebar | Collapse right sidebar when the App is first loaded (True | False). | ||
Width | Right sidebar width. | ||
Background color | Right sidebar background color. | ||
Foreground color | Right sidebar foreground color. | ||
Border color | Right sidebar border color. | ||
Custom content gadget | Gadget based on custom script. | ||
+ Show | Show the custom content gadget (True | False). | ||
+ Expanded | Expand the custom content gadget when the App is first loaded (True | False). | ||
+ Height | Custom content gadget height. | ||
+ Stretch | Stretch the custom content into the right sidebar (True | False). | ||
+ Caption | Custom content gadget caption. | ||
+ Gadget | The gadget to be displayed. | ||
+ Refresh interval | The interval in seconds that the content will be refreshed. | ||
Content gadget #1 | Gadget based on URL. | ||
+ Show | Show the gadget (True | False). | ||
+ Expanded | Expand the gadget when the App is first loaded (True | False). | ||
+ Height | Gadget height. | ||
+ Stretch | Stretch the content into the right sidebar (True | False). | ||
+ Caption | Gadget caption. | ||
+ URL | The URL of the content to be displayed. | ||
+ Refresh interval | The interval in seconds that the content will be refreshed. | ||
Content gadget #2 | Gadget based on URL. | ||
+ Show | Show the gadget (True | False). | ||
+ Expanded | Expand the gadget when the App is first loaded (True | False). | ||
+ Height | Gadget height. | ||
+ Stretch | Stretch the content into the right sidebar (True | False). | ||
+ Caption | Gadget caption. | ||
+ URL | The URL of the content to be displayed. | ||
+ Refresh interval | The interval in seconds that the content will be refreshed. | ||
Content gadget #3 | Gadget based on URL. | ||
+ Show | Show the gadget (True | False). | ||
+ Expanded | Expand the gadget when the App is first loaded (True | False). | ||
+ Height | Gadget height. | ||
+ Stretch | Stretch the content into the right sidebar (True | False). | ||
+ Caption | Gadget caption. | ||
+ URL | The URL of the content to be displayed. | ||
+ Refresh interval | The interval in seconds that the content will be refreshed. | ||
Content gadget #4 | Gadget based on URL. | ||
+ Show | Show the gadget (True | False). | ||
+ Expanded | Expand the gadget when the App is first loaded (True | False). | ||
+ Height | Gadget height. | ||
+ Stretch | Stretch the content into the right sidebar (True | False). | ||
+ Caption | Gadget caption. | ||
+ URL | The URL of the content to be displayed. | ||
+ Refresh interval | The interval in seconds that the content will be refreshed. |
Custom Delegates
Attribute | Description | Name | Type |
---|---|---|---|
Scripting language | The default scripting language for custom code in this page (Inherit | Recital | Visual FoxPro | Python | JavaScript | PHP). | scriptingLanguage | Character |
Custom library | The filename of the library containing code for event handlers and custom procedures/functions. | scriptingLanguage | Character |
Enabled When | The delegate for the EnabledWhen event. | enabledWhenAction | Character |
Visible When | The delegate for the VisibleWhen event. | visibleWhenAction | Character |
Valid When | The delegate for the ValidWhen event. | validWhenAction | Character |
Activate | The delegate for the Activate event. | activateAction | Character |
Deactivate | The delegate for the Deactivate event. | deactivateAction | Character |
Init | The delegate for the Init event. | initAction | Character |
Destroy | The delegate for the Destroy event. | destroyAction | Character |
Load | The delegate for the Load event. | loadAction | Character |
Ready | The delegate for the Ready event. | readyAction | Character |
Unload | The delegate for the Unload event. | unloadAction | Character |
Change | The delegate for the Change event. | changedAction | Character |
Timer | The delegate for the Timer event. | timerAction | Character |
Timer interval | The timer interval in seconds that the Timer event will be called at runtime. | timerInterval | Int |
Custom menu | The delegate for the Custom menu event. | customMenuAction | Character |
Custom search | The delegate for the Search event. | customSearch | Character |
Instant search | The delegate for the Instant Search event. The text typed in the searchbox is passed as a parameter. | searchAction | Character |
Dialog button delegate | The delegate for the DialogButtonClicked event. If a dialogbutton on a Field has no delegate, the Section delegate will be called. If the Section has no delegate, then the Page delegate will be called. | dialogButtonAction | Character |
Gestures
Attribute | Description | Name | Type |
---|---|---|---|
Swipe navigation | Enable swipe left and swipe right to navigate between Pages (True | False). | swipeNavigation | Boolean |
Gestures enabled | Enable gestures for this page: swipe, pan, pinch, tap and tapandhold (True | False). If enabled, then the Gestures delegate will be called with two arguments, e.g. 'swipe','left' or 'swipe','right'. |
gesturesEnabled | Boolean |
Swipe left gesture | The delegate for the gestureSwipeLeft event. | gestureSwipeLeftAction | Character |
Swipe right gesture | The delegate for the gestureSwipeRight event. | gestureSwipeRightAction | Character |
Swipe up gesture | The delegate for the gestureSwipeUp event. | gestureSwipeUpAction | Character |
Swipe down gesture | The delegate for the gestureSwipeDown event. | gestureSwipeDownAction | Character |
Pan gesture | The delegate for the gesturePan event. | gesturePanAction | Character |
Pinch gesture | The delegate for the gesturePinch event. | gesturePinchAction | Character |
Tap gesture | The delegate for the gestureTap event. | gestureTapAction | Character |
Tap and hold gesture | The delegate for the gestureTapAndHold event. | gestureTapAndHoldAction | Character |
Gestures | The catch all delegate for the gestures event. | gesturesAction | Character |
Custom Actions
Attribute | Description | Name | Type |
---|---|---|---|
Add action | The custom action function for Add. This will be called to add a record. |
addAction | Character |
Delete action | The custom action function for Delete. This will be called to delete a record. |
deleteAction | Character |
Refresh action | The custom action function for Refresh. This will be called to refresh the current record. |
refreshAction | Character |
First action | The custom action function for First. This will be called to read the first record. |
firstAction | Character |
Previous action | The custom action function for Previous. This will be called to read the previous record. |
previousAction | Character |
Next action | The custom action function for Next. This will be called to read the next record. |
nextAction | Character |
Last action | The custom action function for Last. This will be called to read the last record. |
lastAction | Character |
Edit action | The custom action function for Edit. This will be called to edit the current record. |
editAction | Character |
Save action | The custom action function for Save. This will be called to save changes. |
saveAction | Character |
Cancel action | The custom action function for Cancel. This will be called to cancel changes. |
cancelAction | Character |
Permissions and Roles
Attribute | Description | Name | Type |
---|---|---|---|
Create roles | A comma separated list of roles that can perform create operations on data in the page. | permcreate | Character |
Read roles | A comma separated list of roles that can read (and view) the page. | permRead | Character |
Update roles | A comma separated list of roles that can perform update operations on data in the page. | permUpdate | Character |
Delete roles | A comma separated list of roles that can perform delete operations on data in the page. | permDelete | Character |
UI Presentation Rules
Attribute | Description | Name | Type |
---|---|---|---|
Desktop | Include this page in a Desktop client (True | False). | desktopUI | Boolean |
Web | Include this page in a Web client (True | False). | webUI | Boolean |
Tablet | Include this page in a Tablet client (True | False). | tabletUI | Boolean |
Phone | Include this page in a Phone client (True | False). | mobileUI | Boolean |
UI States | UI states that affect this page. Specify multiple states as a comma separated list. | state | Character |
Initial UI state | The initial UI state for this page. This will be applied to the page and all its sections and fields. | uiStateInit | Character |
Readonly when | Page is readonly at runtime if specified expression evaluates to true. | readonlyWhen | Character |
Visible when | Page is visible at runtime if specified expression evaluates to true. | visibleWhen | Character |
Page transition effect | The page transition effect when navigating between pages on Web/Tablet/Phone. (None | Fade | Pop | Flip | Turn | Flow | SlideFade | Slide | SlideUp | SlideDown). | pageTransition | Character |
Apply rules on change | Apply UI presentation rules (Visible when and Readonly when) when data is changed interactively or when navigating records (True | False). | applyRulesOnChange | Boolean |
Page Center Tile
Attribute | Description | Name | Type |
---|---|---|---|
Category | The category in which the Tile should be displayed in the Page Center. | tileCategory | Character |
Tile caption | The caption for the Tile in the Page Center. | tileCaption | Character |
Tile icon | The icon for the Tile in the Page Center. | tileIcon | Character |
Tile size | The size of the Tile in the Page Center. | tileSize | Character |
Background color | The background color for the Tile displayed in the Page Center. | tileBackColor | Character |
Foreground color | The foreground color for the Tile displayed in the Page Center. | tileForeColor | Character |