aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/shared/shared-main/plugins/plugin-placeholder.component.ts
blob: 858eff9baf72dbf33a860168c6e28cc980da96f0 (plain) (tree)
1
2
3
4
5
6
7




                                                         
                                         
                                                      








                                                
import { Component, Input } from '@angular/core'
import { PluginElementPlaceholder } from '@shared/models'

@Component({
  selector: 'my-plugin-placeholder',
  template: '<div [id]="getId()"></div>',
  styleUrls: [ './plugin-placeholder.component.scss' ]
})

export class PluginPlaceholderComponent {
  @Input() pluginId: PluginElementPlaceholder

  getId () {
    return 'plugin-placeholder-' + this.pluginId
  }
}