Difference between revisions of "Working with UI Page Libraries"

From Lianjapedia
Jump to: navigation, search
(showDialog)
Line 34: Line 34:
 
=Using UI Page Library Files=
 
=Using UI Page Library Files=
  
==showDialog==
+
==Lianja.showDialog()==
 
+
[[Lianja|Lianja.showDialog() method]]
+
  
 +
<pre>Lianja.showDialog(title as Character,
 +
                      page as Character
 +
                      [, width as Numeric
 +
                      [, action as Character
 +
                      [, text as Character]]]</pre>
  
 +
The Lianja.showDialog() method slides a dialogPanel in from the right of the main window and embeds the specified ''page'' from the page library into it.  For the Web and Mobile Clients, the ''page'' must be a [[Lianja Server Pages|.rsp]] or [[JavaScript Server Pages|.jssp]] script. If ''width'' is a negative number, the dialogPanel will slide from the left.  Specifying a ''width'' of "100%" will animate the dialogPanel in place and it will occupy the whole page viewport (Web client).
  
 
==showDialogPanel==
 
==showDialogPanel==

Revision as of 07:08, 4 January 2018

Under Construction

See article here

Overview

Lianja Demo App



In Lianja App Builder, Pages can be saved in a Visual Page Library as reusable UI Page components.

This provides developers with the ability to lay out pages in the Pages Workspace (with all of the power and functionality of related sections) and reuse these pages in dialogs and desktop navigation Panels and component gadgets .

Saving to the UI Page Library

Headerbar Toolbutton: Save in the Page Library

Page Attribute

Attribute Description Name Type
Autosave in Page Library Always save this page to the UI Page Library when an App is saved. alwaysSaveInPageLibrary Boolean

Custom Event Delegates

For UI Pages with Custom Event Delegates, see forum post here

Using UI Page Library Files

Lianja.showDialog()

Lianja.showDialog(title as Character, 
                       page as Character
                       [, width as Numeric
                       [, action as Character
                       [, text as Character]]]

The Lianja.showDialog() method slides a dialogPanel in from the right of the main window and embeds the specified page from the page library into it. For the Web and Mobile Clients, the page must be a .rsp or .jssp script. If width is a negative number, the dialogPanel will slide from the left. Specifying a width of "100%" will animate the dialogPanel in place and it will occupy the whole page viewport (Web client).

showDialogPanel

Lianja.showDialogPanel() method


Component Gadgets

Component Gadget Attributes

Attribute Description Name Type
Custom UI component Specify a custom UI component from the UI Page Library to embed into this gadget customComponent Character