New positioning package following on #246 discussion.
I've set the constructor to work with Factory.of() and I provide a UxPositioningFactory type for better typescript support. Then usage will be (as can be found in demo):
import { UxPositioning, UxPositioningFactory } from '@aurelia-ux/positioning';
@inject(Factory.of(UxPositioning))
export class SomeElement {
private anchor: HTMLElement;
private element: HTMLElement;
private positioning: UxPositioning;
constructor(private positioningFactory: UxPositioningFactory) {
}
public someMethod() {
this.positioning = this.positioningFactory(this.anchor, this.element, {
placement: 'bottom'
});
}
}
@bigopon @EisenbergEffect This package is ready for final review. When merged I will immediately use it for the modal package.
New positioning package following on #246 discussion.
I've set the constructor to work with
Factory.of()
and I provide aUxPositioningFactory
type for better typescript support. Then usage will be (as can be found in demo):