provide specific engine boundaries for nodejs and yarn
[oweals/peertube.git] / client / src / app / shared / buttons / action-dropdown.component.ts
index 6649b092accb278f93c04452342ebcb64fc49b61..15f9556dc95b89bf035c929705a3f1be4aa0461e 100644 (file)
@@ -9,6 +9,7 @@ export type DropdownAction<T> = {
   handler?: (a: T) => any
   linkBuilder?: (a: T) => (string | number)[]
   isDisplayed?: (a: T) => boolean
+  isHeader?: boolean
 }
 
 export type DropdownButtonSize = 'normal' | 'small'
@@ -26,6 +27,7 @@ export class ActionDropdownComponent<T> {
   @Input() entry: T
 
   @Input() placement = 'bottom-left auto'
+  @Input() container: null | 'body'
 
   @Input() buttonSize: DropdownButtonSize = 'normal'
   @Input() buttonDirection: DropdownDirection = 'horizontal'