cancel
Showing results for 
Search instead for 
Did you mean: 

Left to Right support on single control

Former Member
0 Kudos

Hi Experts,

My application is defined to be Right to left (in the index.html):


<script src="/sap/ui5/1/resources/sap-ui-core.js"

  id="sap-ui-bootstrap"

  data-sap-ui-libs="sap.m,sap.makit,sap.viz,sap.ui.commons"

  data-sap-ui-rtl="true"

  data-sap-ui-theme="sap_bluecrystal">

</script>

Several sap.m control have unexpected behavior, e.g. DateTimeInput - the column of hour and the column of minutes are switched.

I solved the previous problem using css, but I have a problem with Tile container, both of the navigation arrows are placed in the same side of the tile container.

Can anyone suggest how to solve this issue?

If determining a specific direction for a specific control is possible, I think this would be the best solution (because I don't need this control to have RTL properties) .

Thanks,

Ran

Accepted Solutions (1)

Accepted Solutions (1)

former_member91307
Contributor
0 Kudos

Hi Ran,

It works fine in the below link

http://jsbin.com/afif/370/edit

Could be some other issue.

The core method get RTL could be obtained by

sap.ui.getCore().getConfiguration().getRTL()

Thansk and Regards, Venkatesh

Former Member
0 Kudos

Hi Venktash,

Thank you very much for your prompt reply.

I can see that the example you provided is working, I guess the difference is the UI5 version, you are using 1.18.8 and I'm using 1.16.4 (SP7).

If I understood correctly the usage of sap.ui.getCore().getConfiguration().getRTL(), it is used for obtaining the direction of the application, can it be used to set a specific control's direction?

Ran

Answers (0)