mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 02:24:11 +00:00
20 lines
621 B
TypeScript
20 lines
621 B
TypeScript
import { Component, Inject } from '@angular/core';
|
|
import { MenuItemType } from '../initial-menus-state';
|
|
import { rendersMenuItemForType } from '../menu-item.decorator';
|
|
import { OnClickMenuItemModel } from './models/onclick.model';
|
|
|
|
/**
|
|
* Component that renders a menu section of type ONCLICK
|
|
*/
|
|
@Component({
|
|
selector: 'ds-onclick-menu-item',
|
|
templateUrl: './onclick-menu-item.component.html'
|
|
})
|
|
@rendersMenuItemForType(MenuItemType.ONCLICK)
|
|
export class OnClickMenuItemComponent {
|
|
item: OnClickMenuItemModel;
|
|
constructor(@Inject('itemModelProvider') item: OnClickMenuItemModel) {
|
|
this.item = item;
|
|
}
|
|
}
|