Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enableLinks option has disappeared #108

Open
SteveMcArthur opened this issue Sep 20, 2019 · 2 comments
Open

enableLinks option has disappeared #108

SteveMcArthur opened this issue Sep 20, 2019 · 2 comments

Comments

@SteveMcArthur
Copy link

SteveMcArthur commented Sep 20, 2019

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
Copy link

Thanks..Sir

@atodorov
Copy link

@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 added a commit to kiwitcms/Kiwi that referenced this issue Sep 22, 2020
pf-bootstrap-treeview has removed the enableLinks option
wo we may not be able to use this component at all:
patternfly/patternfly-bootstrap-treeview#108

An alternative is to build the tree using HTML:
https://www.w3schools.com/howto/howto_js_treeview.asp

if this is the case then we can probably add a template tag for that!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants