Migration from 3.6 to 4.0

1) In the new version of DHTMLX Library the names of some methods were changed. We've made these changes as the previous names of the methods under question didn't reflect their functionality precisely, which could cause ambiguity or misunderstanding.

2) Since the release of the latest version of DHTMLX library some functionality has been removed. It was made as this functionality is no longer needed and therefore isn't supported.

3) Functionality moved from object to object

There were changes in the methods of layout components (Layout, Windows, Accordion, Tabbar). It concerns the methods that don't operate on the components in whole, but affect their cells (windows, tabs) directly.

Such methods have earlier been called through myAcc object and now they are called through myAcc.cells() object. Be careful, as the names of these methods are also changed to more logical ones.

Up to version 3.6From version 4.0
Function names changed
myAcc.loadJSON(data, callback)myAcc.loadStruct(data, callback)
myAcc.loadXML(data, callback)myAcc.loadStruct(data, callback)
myAcc.setSkinParameters(ofsBetween, ofsCont)myAcc.setOffset(ofsBetween)
Functionality was removed
myAcc.setEffect(mode)Since 4.0 effects are enabled for modern browsers by default
Functionality moved from object to object
myAcc.setIcon(id, icon) myAcc.cells(id).setIcon(icon)
myAcc.clearIcon(id) myAcc.cells(id).clearIcon()
myAcc.setActive(id) myAcc.cells(id).open()
myAcc.isActive(id) myAcc.cells(id).isOpened()
myAcc.openItem(id) myAcc.cells(id).open()
myAcc.closeItem(id) myAcc.cells(id).close()
myAcc.moveOnTop(id) myAcc.cells(id).moveOnTop()
myAcc.setItemHeight(id,h) myAcc.cells(id).setHeight(h)
myAcc.setText(id,text) myAcc.cells(id).setText(text)
myAcc.getText(id) myAcc.cells(id).getText()
myAcc.showItem(id) myAcc.cells(id).show()
myAcc.hideItem(id) myAcc.cells(id).hide()
myAcc.isItemHidden(id) myAcc.cells(id).isVisible()
Back to top