-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
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
Allow for passing a positioning strategy to IgxGridToolbarHidingComponent #9065
Comments
There has been no recent activity and this issue has been marked inactive. |
Thanks for re-opening the request. Actually still in need for a solution to this. |
Hey @obedurena, thank you for your idea proposal. We've implemented the desired behavior, now it would be easy for you to set a different overlaySettings by using a simple toolbar action input (not only a positionStrategy). The feature will be available at the beginning of the next week with versions 11.1.16 and 12.0.6. Example below: <igx-grid-toolbar-actions>
<igx-grid-toolbar-pinning [overlaySettings]="overlaySettingsGlobal"></igx-grid-toolbar-pinning>
<igx-grid-toolbar-hiding [overlaySettings]="overlaySettingsAuto"></igx-grid-toolbar-hiding>
</igx-grid-toolbar-actions> public positionStrategyGlobal = new GlobalPositionStrategy({
openAnimation: scaleInCenter,
closeAnimation: scaleOutCenter
});
public overlaySettingsGlobal = {
positionStrategy: this.positionStrategyGlobal,
scrollStrategy: new AbsoluteScrollStrategy(),
modal: true,
closeOnEscape: true
};
public positionStrategyAuto = new AutoPositionStrategy();
public overlaySettingsAuto = {
positionStrategy: this.positionStrategyAuto,
scrollStrategy: new AbsoluteScrollStrategy(),
modal: false,
closeOnEscape: false
};
public positionStrategyElastic = new ElasticPositionStrategy({
verticalDirection: VerticalAlignment.Top,
verticalStartPoint: VerticalAlignment.Bottom,
horizontalDirection: HorizontalAlignment.Left,
horizontalStartPoint: HorizontalAlignment.Right
});
public overlaySettingsElastic = {
positionStrategy: this.positionStrategyElastic,
scrollStrategy: new AbsoluteScrollStrategy(),
modal: true,
closeOnEscape: true
}; |
We have added some more buttons to our IgxGridToolbarActions. Now on small screens we face the issue, that the dropdown of the IgxGridToolbarHidingComponent always opens right aligned, so that it gets outside the viewport on the left.
For our own buttons which open dropdowns we are able to pass overlaySettings with AutoPositionStrategy.
Is there any way to make this work for the IgxGridToolbarHidingComponent?
The text was updated successfully, but these errors were encountered: