Header Title
Overview
Use the header title component to display your application title in your app header.
Only add the header title to the left side of the header.
If you have an SVG with your application logo, you can display that in the left side instead of a title.
See Themed SVG Images for more information on properly styling the SVG.
Development
Web component development
Component reference
rui-header-title
Your application title; displays in left side of header bar
Name | Type | Default | Description |
---|---|---|---|
titleText | string | '' | This specifies the title displayed in the header for your application. This value displays at desktop and tablet size. It also displays at mobile size unless you specify an alternate title for mobile size with the mobileTitleText property. |
mobileTitleText | string | '' | This optional property allows you to specify an alternate title that displays at mobile size. This can be useful when the titleText is too large to fit at mobile size. You’ll typically specify a shorter mobile title than the value you specify for titleText. If you don’t specify a value for mobileTitleText, the titleText value displays. |
Implementation
Begin by importing the rui-header
module into your application.
Nest a rui-header-title
tag in the left side of your header to display your application name as simple text.
This tag has a titleText
attribute; specify your application name here.
The example below displays the application title in the left side of the header. It provides a shorter version of the application title for display in mobile.
Angular wrapper development
Wrapper reference
jha-header-title
Your application title; displays in left side of header bar
Name | Type | Default | Description |
---|---|---|---|
jhaTitle | string | '' | This specifies the title displayed in the header for your application. This value displays at desktop and tablet size. It also displays at mobile size unless you specify an alternate title for mobile size with the jhaPhoneTitle property. |
jhaPhoneTitle | string | '' | This optional property allows you to specify an alternate title that displays at mobile size. This can be useful when the jhaTitle is too large to fit at mobile size. You’ll typically specify a shorter mobile title than the value you specify for jhaTitle. If you don’t specify a value for jhaPhoneTitle, the jhaTitle value displays. |
Implementation
Begin by importing the JhaHeaderModule into your application.
Nest a jha-header-title
tag in the left side of your header to display your application name as simple text.
This tag has a jhaTitle
attribute; specify your application name here.
The example below displays the application title in the left side of the header. It provides a shorter version of the application title for display in mobile.
Component playground
Design
Figma design
Dev Component | Design Component Name |
---|---|
Header bar | RUI / Header / Header Bar The app title is a sub-element in the header bar, so change it within that component. |
Adobe XD design
- Layout - Header, Expanded Nav, Function View
- Layout - Header, Collapsed Nav, Function View
- Layout - Nav Elements - Expanded Nav Bar
- Layout - Nav Elements - Collapsed Nav Bar
- Layout - Nav Mega Menu
- Layout - Header Elements – Basics
- Layout - Header Menu Buttons
- Layout - Header Mega Menu
- Layout - Mobile Application
- Layout - Tablet Application – Portrait
- Layout - Tablet Application - Landscape
Dev Component | Design Component Name |
---|---|
Header bar | JHA / Header / Header Bar The app title is a sub-element in the header bar, so change it within that component. |