Jump to content

How To Fix RTL issue UniTreeMenu ?


M.Ammar

Recommended Posts

Hi 

How can I fix UniTreeMenu in RTL

1- the extender overlaps the Menu Icon.

2- the Sup Item Space is missing, needt to defer from the main node.

I have Tried the flowing

 1- ExtenderFirst.

2- BodyRTL.

3- InputRTL.

I used to not use icons in the main nodes but now I need the micro option and I have to use icons for that

or if not possible to fix this right now how can I show / hide item icon at runtime Knowing that I create Items dynamically

Menu.thumb.png.0ad14a6d3694f136ada9a913fafa7aa0.png

Regards

Link to comment
Share on other sites

50 minutes ago, Sherzod said:

Thank you for this fix, it fixed the issue when RTL Is True , but when English is enabled and RTL is false the extender icon is in bad position , 

how can I use this at runtime 

regards

Link to comment
Share on other sites

12 minutes ago, M.Ammar said:

yes to enable it when it is RTL and disable it when it is not

One possible solution.

1. UniServerModule -> CustomCSS:

.custommenu.x-treelist-nav .x-treelist-item-expander {
    right: 150px;
}

2. "Enable":

UniTreeMenu1.JSInterface.JSCall('addCls', ['custommenu']);

    "Disable":

UniTreeMenu1.JSInterface.JSCall('removeCls', ['custommenu']);

 

  • Like 1
Link to comment
Share on other sites

  • 3 months later...
  • 1 year later...
  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...