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
{{ message }}
Repository navigation
dynamically change menu side direction when change document direction #9526
how to dynamically change menu side direction when change document direction?
i tried to change it manually by this code but it doesn't work
<ion-menu [content]="content" [side]="platform.isRTL()==true?'right':'left'">
also when use this code
<ion-menu [content]="content" [side]="direction" >
it doesn't work when change "direction" variable
changed the title [-]dynamically change menu side direction with document direction[/-][+]dynamically change menu side direction when change document direction[/+]on Dec 7, 2016
the problem related to file:
"/node_modules/ionic-angular/components/menu/menu.js"
in the function
Menu.prototype._getType = function () {
if (!this._type) {
this._type = MenuController.create(this.type, this, this._platform);
if (this._config.get('animate') === false) {
this._type.ani.duration(0);
}
}
return this._type;
};
we can comment “if condition” but it will recreate type every time so we can keep if condition and reset this._type when change menu side direction “i don’t know how do do this”
also we should use this code when change the direction
Hello, thanks for using Ionic! We really appreciate this feedback on RTL support. This is not currently high priority for us at the moment, but we are tracking it in #5035. Because of this I am going to close this issue as a duplicate of that issue and ask that you put your feedback on that issue. Please know that by me closing this issue I am not saying that your feedback is not important, or that RTL support is not important, but I am simply closing this issue as we like to keep our issues as organized as possible so things do not get lost in the weeds (which is better said than done haha).
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Activity
[-]dynamically change menu side direction with document direction[/-][+]dynamically change menu side direction when change document direction[/+]BahgatMashaly commentedon Dec 11, 2016
the problem related to file:
"/node_modules/ionic-angular/components/menu/menu.js"
in the function
Menu.prototype._getType = function () {
if (!this._type) {
this._type = MenuController.create(this.type, this, this._platform);
if (this._config.get('animate') === false) {
this._type.ani.duration(0);
}
}
return this._type;
};
we can comment “if condition” but it will recreate type every time so we can keep if condition and reset this._type when change menu side direction “i don’t know how do do this”
also we should use this code when change the direction
SV.menu.getMenus()[0].side="right"
SV.menu.getMenus()[0].setElementAttribute("side","right");
hope to fix it in the next version
AmitMY commentedon Apr 7, 2017
@brandyscarney I see you are tagged here. Is this in the visible future roadmap? (it's important adding the middle eastern locales)
jgw96 commentedon Apr 7, 2017
Hello, thanks for using Ionic! We really appreciate this feedback on RTL support. This is not currently high priority for us at the moment, but we are tracking it in #5035. Because of this I am going to close this issue as a duplicate of that issue and ask that you put your feedback on that issue. Please know that by me closing this issue I am not saying that your feedback is not important, or that RTL support is not important, but I am simply closing this issue as we like to keep our issues as organized as possible so things do not get lost in the weeds (which is better said than done haha).
ionitron-bot commentedon Sep 2, 2018
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.