Tree table example
This is an example of how to create a “tree table” based on qtree and qtable components, could be useful.
Hawkeye64 last edited by
nothingismagick last edited by nothingismagick
That is really sweet @Fernando2684 - nice idea. As far as your code goes, there are several places where you could clean it up, first and foremost you should always aviod type conversion. You should get in the habit of using === and !== instead of == and !=. This is what Douglas Crockford has to say about it (from this SO post )
'' == '0' // false 0 == '' // true 0 == '0' // true false == 'false' // false false == '0' // true false == undefined // false false == null // false null == undefined // true ' \t\r\n ' == 0 // true
Here is a little update to show you that it also works as expected: https://jsfiddle.net/7fuckt8s/ (It seems I win the jsfiddle lottery!!!)
@nothingismagick good,that is the idea and everyone’s ideas are welcome.