patternfly-bootstrap-treeview icon indicating copy to clipboard operation
patternfly-bootstrap-treeview copied to clipboard

enableLinks option has disappeared

Open SteveMcArthur opened this issue 6 years ago • 2 comments

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);
  }

SteveMcArthur avatar Sep 20 '19 08:09 SteveMcArthur

Thanks..Sir

dsahu469 avatar Jun 11 '20 13:06 dsahu469

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

atodorov avatar Sep 22 '20 18:09 atodorov