We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ ] Bug report [x] Feature request [ ] Documentation issue or request
Dropdown can be triggered via trigger element as id selector or as html element. Unfortunately this is not easy with the angular template engine.
Add a angular framwork integration like a directive e.g.
Directive:
@Directive({ selector: '[ixDropdownTrigger]', }) export class IxDropdownTriggerDirective { @Input() ixDropdownTrigger!: any; constructor(private element: ElementRef) {} protected ngOnChanges() { this.element.nativeElement.trigger = this.ixDropdownTrigger.el; } }
Usage:
<ix-button #trigger>test</ix-button> <ix-dropdown [ixDropdownTrigger]="trigger"> <ix-dropdown-item label="test"></ix-dropdown-item> <ix-dropdown-item label="test"></ix-dropdown-item> <ix-dropdown-item label="test"></ix-dropdown-item> </ix-dropdown>
The text was updated successfully, but these errors were encountered:
danielleroux
Successfully merging a pull request may close this issue.
I'm submitting a...
Current behavior
Dropdown can be triggered via trigger element as id selector or as html element. Unfortunately this is not easy with the angular template engine.
Expected behavior
Add a angular framwork integration like a directive e.g.
Directive:
Usage:
The text was updated successfully, but these errors were encountered: