Select to view content in your preferred language

How to show TOC widget in right-to-left mode: solution

4016
0
01-17-2015 01:26 AM
EvgenyKleiman
Deactivated User

I mean http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109

of nliu  that is very useful. Recently I found how to show the tree of TOC in right to left mode.

Firstly define

div id="tocDiv" dir="rtl"

where tocDiv is a tag you would attach TOC to.

Secondly in source code Toc.js of tOC widget replace

paddingLeft by paddingRight

(there are 2 such places)

That's all

0 Kudos
0 Replies