-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(slideout-stack): Refactoring the 'push' method. Custom data can …
…now be passed to the component.
- Loading branch information
1 parent
4c7f59a
commit 0eab5c0
Showing
3 changed files
with
114 additions
and
39 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { ComponentType } from "@angular/cdk/portal"; | ||
|
||
import { SlideOutStackOptions } from "./slideout-stack-options"; | ||
|
||
/** | ||
* Parameters for a slideout to display in the stack. | ||
* @author molinet | ||
*/ | ||
export interface SlideOutStackParams { | ||
/** | ||
* The component to display in the slideout. | ||
*/ | ||
component: ComponentType<any>; | ||
/** | ||
* The custom properties to pass to the component. | ||
*/ | ||
properties?: { [key: string]: any }; | ||
/** | ||
* The options for the slideout. | ||
*/ | ||
options?: SlideOutStackOptions; | ||
} |
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