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