mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 23:13:04 +00:00
26 lines
723 B
TypeScript
26 lines
723 B
TypeScript
import { Component, Input } from '@angular/core';
|
|
|
|
/**
|
|
* This component renders any content inside of this component.
|
|
* If there is a title set it will render the title.
|
|
* If hasInnerHtml is true the content will be handled as html.
|
|
* To see how it is used see collection-page or community-page.
|
|
*/
|
|
@Component({
|
|
selector: 'ds-comcol-page-content',
|
|
styleUrls: ['./comcol-page-content.component.scss'],
|
|
templateUrl: './comcol-page-content.component.html'
|
|
})
|
|
export class ComcolPageContentComponent {
|
|
|
|
// Optional title
|
|
@Input() title: string;
|
|
|
|
// The content to render. Might be html
|
|
@Input() content: string;
|
|
|
|
// flag whether the content contains html syntax or not
|
|
@Input() hasInnerHtml: boolean;
|
|
|
|
}
|