patternfly / patternfly-bootstrap-treeview

Tree View for Twitter Bootstrap -
http://jonmiles.github.io/bootstrap-treeview
Apache License 2.0
200 stars 105 forks source link

enableLinks option has disappeared #108

Open SteveMcArthur opened 5 years ago

SteveMcArthur commented 5 years ago

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);
  }
dsahu469 commented 4 years ago

Thanks..Sir

atodorov commented 4 years ago

@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.