Accordion Behavior

From Lianjapedia
Revision as of 06:47, 26 October 2016 by Yvonne.milne (Talk | contribs)

Jump to: navigation, search

Under construction

See Also

Accordion Sections (Video)

Overview

Accordion Behavior is ideal for making the most of the available screen space. When a section in an accordion is selected, it is expanded and all other sections in the accordion are automatically collapsed.

Accordion Behavior


Here, using the 'Lianja Web UI Demo' (example_webapp2) App in Tablet App View the 'Employee Information' section is selected and expanded and the other two sections are collapsed, with only their headers displayed.


Accordion Behavior


Clicking on the 'Employee Notes' section header expands that section and collapses the others.


Accordion Behavior


And clicking on the 'Employee Documents' section header expands that section and collapses the others.

Page Attributes

The following Page Attributes configure Accordion Behavior.

Accordion behavior

Render as accordion sections (True | False).

Attribute: Accordion Behavior


Checking the Accordion Behavior Page attribute causes the sections on the Page to be displayed as an accordion.

See also Exclude from accordion below.

Use Accordions

Render as accordion sections on low resolution displays.

Attribute: Use Accordions


The Use Accordions attribute works in conjunction with the Use Accordions height attribute.

If Use Accordions is checked (true), it causes the sections on the Page to be displayed as an accordion if the display resolution is less than the Use Accordions height.

Here, the Use Accordions height is set to 800 (pixels), but the current resolution is higher, so the sections are not displayed in an accordion.

Use Accordions height

Render as accordion sections on low resolution displays less than this height.

Attribute: Use Accordions height



The Use Accordions height attribute works in conjunction with the Use Accordions attribute.

If Use Accordions is checked (true), it causes the sections on the Page to be displayed as an accordion if the display resolution is less than the Use Accordions height.

Here, the Use Accordions height is set to 1200 (pixels) and the current resolution is lower, so the sections are displayed in an accordion.

Stacked behavior at runtime

Treat accordion sections as stacked at runtime allowing the sections to be made raised using showdocument() or from the Navigation Panel.

Attribute: Stacked behavior at runtime


Here, in the 'Example Accordion Stack' (example_accordionstack) demo App, the 'Employee Information' page has three sections with fields from the southwind!employees table.

The photo and notes fields are each in their own section and the other fields in a third section.

Using the Page navigation bar, all sections are affected, but because the Stacked behavior at runtime attribute is checked (true), each section is allowed to fill the available screen space - here, shown in Phone App View.

Attribute: Stacked behavior at runtime



Footer menus on the sections allow each section to be selected using showdocument().

Attribute: Stacked behavior at runtime


Here, in the 'Lianja Tablet Web UI Demo' (example_webapp1) App, shown in Tablet App View page and section selection is controlled from the Navigation Panel menu.

Attribute: Stacked behavior at runtime


The 'Employees' page has the Stacked behavior at runtime attribute checked (true) and four sections. Each section can be selected individually from the Navigation Panel menu and allowed to fill the available screen space.

See also Accordion Sections (Video).

Section Attributes

The following Section Attributes further configure Accordion Behavior.

Hide form NavBar

Hide form Navigation Bar at runtime if this section is in an Accordion Stack (True | False).

Attribute: Hide form NavBar


Attribute: Hide form NavBar


Exclude from accordion

The section is excluded from accordion behavior at runtime (True | False).

Attribute: Exclude from accordion


Attribute: Exclude from accordion


Attribute: Exclude from accordion


Notes on Client Support

Attribute Notes
Accordion behavior -
Use Accordions -
Use Accordions height -
Stacked behavior at runtime -
Hide form NavBar -
Exclude from accordion Supported on the Desktop client only.