AnsweredAssumed Answered

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

Question asked by ekleiman22 on Jan 17, 2015

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

 

 

 

 

 

Outcomes