Right to Left in TabPanel

Right to Left in TabPanel

Languages such as Arabic, Hebrew etc. render content from right to left of the page. HTML accommodates this using the 'dir' attribute. Setting 'dir' to 'rtl' on any element causes the element's content to flow from right to left.

The TabPanel supports this automatically. If the element hosting the control has the 'dir' attribute set to 'rtl', the panel renders with tabs aligned from right to left. There is no need to set any properties on the control.

Note that the 'dir' attribute value is inherited, so if you set it on the body tag for example, the entire page is rendered from right to left, including the TabPanel.