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

types-plugin: a_attr/li_attr are not merged to nodes #2761

Open
SKPFCW opened this issue Dec 4, 2023 · 0 comments
Open

types-plugin: a_attr/li_attr are not merged to nodes #2761

SKPFCW opened this issue Dec 4, 2023 · 0 comments

Comments

@SKPFCW
Copy link

SKPFCW commented Dec 4, 2023

It seems that the a_attr- and li_attr-objects in the types-plugin-configuration are not merged into the node-objects:

  $("#test").jstree({    
    core: {
      data: [
        { "id":"fldr0000", "text":"Folder 1", "parent":"#","type": "folder" },
        { "id":"doc0000", "text":"Document 1", "parent":"fldr0000", "type":"doc" }
      ]
    },
    plugins: ["types"],
    types: {
      folder: {
        a_attr: { title: "Its a Folder" },
        li_attr: { class:"folderClass" },
        icon: false
      },
      doc: {
        a_attr: { title: "Its a Document" },
        li_attr: { class: "docClass" },
        icon: false
      }
    }
  });

Result:
Neither title- nor class-attributes where rendered into the li-/a-tags:
image

jsFiddle:
https://jsfiddle.net/a7jyx94w/4/

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

1 participant