TreeTable: nodes render blank/empty onDataRequest

Two questions on this treetable dynamic loading snippet:

  1. Why does the “Expand me!” element disappear until it’s rendered again, instead of showing the spinner?

  2. How can the last node be preserved? In never shows back again.

(1)

webix_tree_custom is not a some predefined class, it just a name for some custom css class. If this class is not defined then div will take a whole line and text will disappear.

Adding float:left to this node solves issue.

(2)

Changing line in the type.icon like if (obj.open && obj.$count < 0) will help.

http://webix.com/snippet/19c9a956