Return node by text.
Parameters
Name | Type | Description |
---|---|---|
text | {string} | The text in the node that needs to be returned |
Examples
sample
<div id="tree"></div>
<script>
var tree = $('#tree').tree({
dataSource: '/Locations/Get'
});
tree.on('dataBound', function() {
var node = tree.getNodeByText('Asia');
node.css('background-color', 'red');
});
</script>