page-headers

Page headers are used at the top of several page types and contains the Title of the page.

OpportunitiesRecently Viewed

10 items • Updated 13 minutes ago

About Page header

The Page Header uses the .slds-page-header class as a base and is comprised of multiple components including the Title of the page and supporting details. For large form factors, it may include actions.

Base

opportunity

Rohde Corp - 80,000 Widgets

Mark Jaeckal • Unlimited Customer • 11/13/15

<div class="slds-page-header">
  <div class="slds-page-header__row">
    <div class="slds-page-header__col-title">

Object Home

OpportunitiesRecently Viewed

10 items • Updated 13 minutes ago

<div class="slds-page-header">
  <div class="slds-page-header__row">
    <div class="slds-page-header__col-title">

The title for the Object Home page header is a filtering component. The .slds-text-focus class is placed on the media object that contains the title and down icon to simulate a hover and focus state of a link.

This component is created entirely of existing components like buttons, button groups, and icons.

Examples

With extra long name

OpportunitiesRecently Viewed listssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss

10 items • Updated 13 minutes ago

<div class="slds-page-header">
  <div class="slds-page-header__row">
    <div class="slds-page-header__col-title">

Inside a card

OpportunitiesRecently Viewed

10 items • Updated 13 minutes ago

<article class="slds-card">
  <div class="slds-page-header">
    <div class="slds-page-header__row">

Inside a tabs card

OpportunitiesRecently Viewed

10 items • Updated 13 minutes ago

<div class="slds-tabs_card">
  <div class="slds-page-header">
    <div class="slds-page-header__row">

Record Home

OpportunityAcme - 1,200 Widgets

  • Field 1
    Description that demonstrates truncation with a long text field.
  • Field 2 (3)
    Multiple Values
  • Field 3
  • Field 4
    Description (2-line truncati...
<div class="slds-page-header slds-page-header_record-home">
  <div class="slds-page-header__row">
    <div class="slds-page-header__col-title">

Page header record home contains up to four compact layout fields. They're contained in the .slds-page-header__detail-row div. That div contains the top and bottom spacing needed for this version of the page header.

When text is truncated, the full text should be placed in a tooltip on hover (currently shown in the title attribute). One line truncation is created by using the .slds-truncate class. Two line truncation must be achieved using JavaScript.

The page header is located at the top of every record home. It includes the record title and compact layout for a record. Excluding the title, the page header displays 4 compact layout fields. Similar data types can be rolled up and be displayed as a single field.

Record Title

  • Display Record Type icon to the left of the title
  • Record Type is displayed above the title
  • When required, follow action is displayed to the right of the record title
  • Display one line of text, truncate when the length conflicts with the page level actions

As shown in Field 3, web addresses and email addresses should be parsed and displayed as hyperlinks linking to the appropriate mailto: or web url. Do not modify the user's input, display as intended.

When text is truncated, display full field text in browser tooltip on hover.

Display addresses in two lines. Street address on first line, City, State and Postal Code on line 2. For lengthy addresses, truncate each line individually based on the available width of the area using the .slds-truncate class. Display the full address via browser tooltip.

Record Home Vertical

opportunity

Burlington Textile Weaving Plant Generator

<div class="demo-only" style="width:300px">
  <div class="slds-page-header slds-page-header_vertical">
    <div class="slds-media">

Vertical page header record home contains up to seven compact layout fields. They're contained in the .slds-page-header__detail-row div. The heading does not truncate. This is typically used in more compact layouts where more vertical space is desired.

Related List

<div class="slds-page-header slds-page-header_related-list">
  <div class="slds-page-header__row">
    <div class="slds-page-header__col-title">

The Related List page header is similar to the Object Home page header. It includes a breadcrumb component at the top and the title is truncated.