+
+ @Input() placement = 'bottom-left auto'
+
+ @Input() buttonSize: DropdownButtonSize = 'normal'
+ @Input() buttonDirection: DropdownDirection = 'horizontal'
+ @Input() buttonStyled = true
+
+ @Input() label: string
+ @Input() theme: DropdownTheme = 'grey'
+
+ getActions () {
+ if (this.actions.length !== 0 && Array.isArray(this.actions[0])) return this.actions
+
+ return [ this.actions ]
+ }
+
+ areActionsDisplayed (actions: Array<DropdownAction<T> | DropdownAction<T>[]>, entry: T): boolean {
+ return actions.some(a => {
+ if (Array.isArray(a)) return this.areActionsDisplayed(a, entry)
+
+ return a.isDisplayed === undefined || a.isDisplayed(entry)
+ })
+ }