export class TreeView extends SampleBase {
fields = {dataSource: dataSource.Data, id:'id', text:'name', child:'child'};
render() {
return (<div className="control-pane">
<h4>TreeView</h4>
<div className="content">
<TreeViewComponent id='sfTreeView'
fields={this.fields}
allowEditing={true} />
</div>
</div>);
}
}
render(<TreeView />, document.getElementById('sample'));
|
#sfTreeView.e-treeview .e-list-item.e-active > .e-text-content,
#sfTreeView.e-treeview .e-list-item.e-active > .e-text-content .e-list-text {
color: green;
}
#sfTreeView.e-treeview .e-list-item.e-editing.e-active > .e-text-content .e-list-text .e-input::selection,
#sfTreeView.e-treeview .e-list-item.e-editing.e-hover > .e-text-content .e-list-text .e-input::selection {
color: green;
background: gold;
}
#sfTreeView.e-treeview .e-input-group::after, #sfTreeView.e-treeview .e-input-group::before {
background: green;
}
|