Application
Overview
The application component wraps your application’s primary elements:
- A header displays at the top.
- A navigation bar displays on the left. This section includes buttons that link to the application’s content views.
- The rest of the screen displays the content for the currently-selected function.
The application component also embeds and manages several behaviors so you don’t have to, including:
- Infinite scrolling
- Scroll-to-top behaviors
- Banner notifications
- Session timeouts
Development
Web component development
Component reference
rui-app
A component that provides the outermost container for an application that uses the Responsive UI web components.
Name | Type | Default | Description |
---|---|---|---|
themeFilePath | string | './assets/rui-themes' | Specifies the relative pathname from the generated dist folder where you have placed Responsive UI theme files. The jha-app component will load theme files from this specified location. |
Implementation
jha-app
component to get built in functionality such as routing and stacked views.Begin by importing rui-layout
from the rui-wc
package into your application.
Jack Henry applications typically define their header in a component named main-header
and their navigation in a component named main-nav
. You wire up the header, nav, and content sections in your app.component.html template as shown below. You can omit any rui-app properties that set the default value, although all properties are shown below for clarity even though these are the default values.
Angular wrapper development
Wrapper reference
jha-app
Provides the outermost container for the application
Name | Type | Default | Description |
---|---|---|---|
routeMatchPrefix | string | '/#' | Specifies the prefix used on routes in Angular so the Responsive UI web components can use route matching to light up the active routes in header and nav buttons. (The web components don’t have Angular routing baked in so they need some clues to identify active routes.) You should leave this at the default value of “/#” for Angular applications that using a HashLocationStrategy. For Angular applications using PathLocationStrategy set the value to empty: “”. |
themeFilePath | string | './assets/rui-themes' | Specifies the relative pathname from the generated dist folder where you have placed Responsive UI theme files. The jha-app component will load theme files from this specified location. |
jhaOnActivateRouterOutlet | event | Event fired when the OnActivate event is fired in the Angular router-outlet. | |
jhaOnDeactivateRouterOutlet | event | Event fired when the OnDeactivate event is fired in the Angular router-outlet. | |
jhaOnAttachRouterOutlet | event | Event fired when the OnAttach event is fired in the Angular router-outlet. | |
jhaOnDetachRouterOutlet | event | Event fired when the OnDetach event is fired in the Angular router-outlet. |
Implementation
Begin by importing the JhaResponsiveCoreModule
and JhaLayoutModule
into your application.
Jack Henry applications typically define their header in a component named main-header
and their navigation in a component named main-nav
. You wire up the header, nav, and content sections in your app.component.html
template like this:
There is a master “main” HTML page that contains and lays out the header, navigation, and content; this is generated implicitly and automatically by the code above.
Design
The application is a conglomeration of header, navigation, and content, so see other sections for design details.