Skip to content

Configurable cbp-header

Compare
Choose a tag to compare
@yogeshgadge yogeshgadge released this 06 Mar 22:44
· 165 commits to master since this release

Make cbp-header configurable

  • Header state is made observable in a service to reflect CBPToolbarState
    • When header is scrolled up: scrolledState: up | initial
    • When header menu is clicked - hasToolbarMenu: boolean
    • When header expands - toolbarIsExpanded: boolean
  • Allows explicitly excluding certain parts of the header
    <cbp-header [cbpAppsMenuExclude]="true" [cbpFeedbackLinkExclude]="true">
        <cbp-feedback-link (click)="myFeedbackAction()"></cbp-feedback-link>
        <cbp-user-menu>
            <div class="mat-menu-item" (click)="myPreferences()" cbp-user-menu-item>Preferences</div>
        </cbp-user-menu>
    </cbp-header>

Upgrade Notes

npm upgrade to 2.1.4 version