patternfly-bootstrap-treeview
patternfly-bootstrap-treeview copied to clipboard
enableLinks option has disappeared
The enableLinks option has disappeared from version 2.1.0. So the example (using v1.2.0) with link enabled is now invalid. I was able to add it back to the code (around line 971) using:
// Add text
if (this._options.wrapNodeText) {
var wrapper = this._template.text.clone();
node.$el.append(wrapper);
wrapper.append(node.text);
}else if(this._options.enableLinks){
node.$el.append($('<a href="#" style="color:inherit;"></a>')
.attr('href', node.href)
.append(node.text));
} else {
node.$el.append(node.text);
}
Thanks..Sir
@patternfly - any update on this? From what I can see this support has been removed from the original fork and you have blindly merged the commits but I don't find any explanation as to why. We'd love to use this feature.