-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support always showing header or footer
- Loading branch information
Showing
3 changed files
with
21 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
import { Route } from '@angular/router'; | ||
|
||
import { | ||
DaffSidebarModeEnum, | ||
DaffSidebarRegistration, | ||
} from '@daffodil/design/sidebar'; | ||
import { DaffSidebarModeEnum } from '@daffodil/design/sidebar'; | ||
|
||
import { DaffioSidebarRegistration } from '../registration/type'; | ||
|
||
export interface DaffioRouteWithSidebars extends Route { | ||
data?: Route['data'] & { | ||
/** | ||
* A collection of sidebars available on the current page. | ||
*/ | ||
daffioSidebars?: Record<DaffSidebarRegistration['id'], DaffSidebarRegistration>; | ||
daffioSidebars?: Record<DaffioSidebarRegistration['id'], DaffioSidebarRegistration>; | ||
/** | ||
* The sidebar that should be shown automatically (if any) when the viewport enters big tablet. | ||
*/ | ||
daffioDockedSidebar?: DaffSidebarRegistration['id']; | ||
daffioDockedSidebar?: DaffioSidebarRegistration['id']; | ||
sidebarMode?: DaffSidebarModeEnum; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { DaffSidebarRegistration } from '@daffodil/design/sidebar'; | ||
|
||
export interface DaffioSidebarRegistration extends DaffSidebarRegistration { | ||
/** | ||
* Whether to show the sidebar header regardless of sidebar mode. | ||
*/ | ||
alwaysShowHeader?: boolean; | ||
/** | ||
* Whether to show the sidebar footer regardless of sidebar mode. | ||
*/ | ||
alwaysShowFooter?: boolean; | ||
} |