You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With nz-flex, it isn't possible to set reverse flex direction. It is a restriction that cause devs to incapulate(wrap) nz-flex in a custom component.Now i have something like this.
Logic:
vertical = input(true, {...})
reverse = input(false, {...})
protected flexClass = () => ({reverse: this.reverse()})
Template =
<nz-flex [ngClass]="flexClass" >...
In a scss i overwrite default flex direction using ng-deep inside host selector for nz-flex.reverse element.
What does the proposed API look like?
It can be a boolean input "reverse", alias "nzReverse", to maintain compatibiliy with vertical input.
The text was updated successfully, but these errors were encountered:
What problem does this feature solve?
With nz-flex, it isn't possible to set reverse flex direction. It is a restriction that cause devs to incapulate(wrap) nz-flex in a custom component.Now i have something like this.
Logic:
vertical = input(true, {...})
reverse = input(false, {...})
protected flexClass = () => ({reverse: this.reverse()})
Template =
<nz-flex [ngClass]="flexClass" >...
In a scss i overwrite default flex direction using ng-deep inside host selector for nz-flex.reverse element.
What does the proposed API look like?
It can be a boolean input "reverse", alias "nzReverse", to maintain compatibiliy with vertical input.
The text was updated successfully, but these errors were encountered: