Difference between revisions of "Section Footers"

From Lianjapedia
Jump to: navigation, search
Line 69: Line 69:
  
 
===Custom action===
 
===Custom action===
 +
 +
[[{{ns:file}}:footer_menu_action.png|450px|thumb|left|link={{filepath:footer_menu_action.png}}|Footer Menu: Custom action]]
 
Action to perform when a footer menuitem is selected.  See [[SHOWDOCUMENT()]].
 
Action to perform when a footer menuitem is selected.  See [[SHOWDOCUMENT()]].
 +
<br clear=all>
 +
 
===Footer button CSS===
 
===Footer button CSS===
 +
[[{{ns:file}}:footer_button_css.png|450px|thumb|left|link={{filepath:footer_button_css.png}}|Footer Menu: Button CSS style]]
 
Footer button CSS style (separate attributes with ; or use app:/filename.css)
 
Footer button CSS style (separate attributes with ; or use app:/filename.css)
 +
<br clear=all>
 +
 
===Footer button width===
 
===Footer button width===
 +
[[{{ns:file}}:footer_button_width.png|450px|thumb|left|link={{filepath:footer_button_width.png}}|Footer Menu: Button width]]
 
Footer button width
 
Footer button width
 +
<br clear=all>
 
===Custom Delegate: Custom footer menu ===
 
===Custom Delegate: Custom footer menu ===
 +
  
 
The delegate for the footer menu event.  
 
The delegate for the footer menu event.  
 +
 +
[[{{ns:file}}:footer_menu_delegate_inline.png|450px|thumb|left|link={{filepath:footer_menu_delegate_inline.png}}|Footer Menu: Custom delegate inline]]
 +
  
 
Can be an [[Inline_Delegates|inline delegate]]
 
Can be an [[Inline_Delegates|inline delegate]]
 +
<br clear=all>
 +
 +
[[{{ns:file}}:footer_menu_delegate_script.png|450px|thumb|left|link={{filepath:footer_menu_delegate_script.png}}|Footer Menu: Custom delegate script]]
 +
 +
 +
Or name of a script.
 +
<br clear=all>
  
 
<code lang="recital">
 
<code lang="recital">

Revision as of 06:24, 12 January 2015

Under Construction

Double-click on the Section header or click the cog icon to access the Section Attributes. Scroll down to the Footer sub-section.

Visible

Section footer visible (True | False).

Footer: default Visible is False


Footer: set Visible to True


Query or change the Visible attribute programmatically using Lianja.get("page.section").footervisible.


Caption

Section footer caption.

Footer Caption


The footer caption can also be formatted with HTML.

Footer Caption with HTML formatting


Query or change the Caption attribute programmatically using Lianja.get("page.section").footercaption.

Height

Section footer height

Footer Height


Background color

Section footer background color

Footer Background Color


Foreground color

Section footer foreground color As Section footer background color. Save the Attribute to see the color change as greyed out while in Section Attributes dialog.

Custom menu

Section footer menu contents (comma separated list of values).

Footer Menu


Footer Menu

To run

Footer Menu

If this list starts with #, then the menuitems are displayed as centred buttons.

Footer Menu

Prefix the list with #< or #> to display the buttons aligned left or right respectively.

Footer Menu

Prefix the list with #< or #> to display the buttons aligned left or right respectively.

Footer Menu

Alternatively, prefix the list with + to display the menuitems as horizontally autosized buttons (tablet style buttons).

Query or change the Custom menu attribute programmatically using Lianja.get("page.section").footermenu.

Custom action

Footer Menu: Custom action

Action to perform when a footer menuitem is selected. See SHOWDOCUMENT().

Footer button CSS

Footer Menu: Button CSS style

Footer button CSS style (separate attributes with ; or use app:/filename.css)

Footer button width

Footer Menu: Button width

Footer button width

Custom Delegate: Custom footer menu

The delegate for the footer menu event.

Footer Menu: Custom delegate inline


Can be an inline delegate

Footer Menu: Custom delegate script


Or name of a script.

////////////////////////////////////////////////////////////////
// Event delegate for 'custommenu' event
proc employees_section1_custommenu(action)
	do case
	case action = "page2"
		messagebox("You selected page2")
	case action = "page3"
		messagebox("You selected page3")
	otherwise
		messagebox("You selected page4")
	endcase
endproc
////////////////////////////////////////////////////////////////
// Event delegate for 'custommenu' event
function employees_section1_custommenu(action)
{
	if (action == "page2")
	{
		messagebox("You selected page2");
	}
	else if (action == "page3")
	{
		messagebox("You selected page3");
	}
	else
	{
		messagebox("You selected page4");
	}
};