blob: 4d5381e8db57c11e5b23ffd51b4367ec227944e6 (
plain) (
tree)
|
|
import { Component, Input } from '@angular/core'
import { PluginElementPlaceholder } from '@shared/models'
@Component({
selector: 'my-plugin-placeholder',
template: '<div [id]="getId()"></div>',
styles: [ 'div { height: 100%; }' ]
})
export class PluginPlaceholderComponent {
@Input() pluginId: PluginElementPlaceholder
getId () {
return 'plugin-placeholder-' + this.pluginId
}
}
|