src/virtual-scrolling-tree/VirtualScrollingTree.js
function createItem (data) {
    let itemEl = document.createElement('div');
    itemEl.setAttribute('class', 'VirtualScrollingTree-item');

    renderItem.call(this, itemEl, data);

    return {
        id: data.id,
        el: itemEl
    };
}
function createItem (data) {
    let itemEl = document.createElement('div');
    itemEl.setAttribute('class', 'VirtualScrollingTree-item');

    renderItem.call(this, itemEl, data);

    return {
        id: data.id,
        el: itemEl
    };
}
function createItem ( data ) { let itemEl = document . createElement ( 'div' ) ; itemEl . setAttribute ( 'class' , 'VirtualScrollingTree-item' ) ; renderItem . call ( this , itemEl , data ) ; return { id : data . id , el : itemEl } ; }
Creates a HTMLElement to render an item into.

@method createItem
@private
@param {Object} data
@return {Object}
Creates a HTMLElement to render an item into .