]>
Commit | Line | Data |
---|---|---|
62bc0352 C |
1 | import { Component, Input } from '@angular/core' |
2 | import { PluginElementPlaceholder } from '@shared/models' | |
3 | ||
4 | @Component({ | |
5 | selector: 'my-plugin-placeholder', | |
ceb8f322 | 6 | template: '<div [id]="getId()"></div>', |
94fbe5c4 | 7 | styleUrls: [ './plugin-placeholder.component.scss' ] |
62bc0352 C |
8 | }) |
9 | ||
10 | export class PluginPlaceholderComponent { | |
11 | @Input() pluginId: PluginElementPlaceholder | |
12 | ||
13 | getId () { | |
14 | return 'plugin-placeholder-' + this.pluginId | |
15 | } | |
16 | } |