forked from DSpace/dspace-angular
-
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.
111321: Made ComColPageContentComponent themeable
- Loading branch information
1 parent
ca86437
commit 106182d
Showing
6 changed files
with
67 additions
and
21 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
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
38 changes: 38 additions & 0 deletions
38
src/app/shared/comcol/comcol-page-content/themed-comcol-page-content.component.ts
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,38 @@ | ||
import { Component, Input } from '@angular/core'; | ||
import { ThemedComponent } from '../../theme-support/themed.component'; | ||
import { ComcolPageContentComponent } from './comcol-page-content.component'; | ||
|
||
/** | ||
* Themed wrapper for {@link ComcolPageContentComponent} | ||
*/ | ||
@Component({ | ||
selector: 'ds-themed-comcol-page-content', | ||
templateUrl: '../../theme-support/themed.component.html', | ||
}) | ||
export class ThemedComcolPageContentComponent extends ThemedComponent<ComcolPageContentComponent> { | ||
|
||
@Input() title: string; | ||
|
||
@Input() content: string; | ||
|
||
@Input() hasInnerHtml: boolean; | ||
|
||
protected inAndOutputNames: (keyof ComcolPageContentComponent & keyof this)[] = [ | ||
'title', | ||
'content', | ||
'hasInnerHtml', | ||
]; | ||
|
||
protected getComponentName(): string { | ||
return 'ComcolPageContentComponent'; | ||
} | ||
|
||
protected importThemedComponent(themeName: string): Promise<any> { | ||
return import(`../../../themes/${themeName}/app/admin/admin-sidebar/admin-sidebar.component`); | ||
} | ||
|
||
protected importUnthemedComponent(): Promise<any> { | ||
return import('./comcol-page-content.component'); | ||
} | ||
|
||
} |
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