Skip to content

[Feature request] Add CSS class (or style) to tree-node div #148

@tafel

Description

@tafel

Hi,

It should be useful for my use case to put a css class or/and css styles directly to the <div class="tree-node"> element.

Should it be possible to add a prop to the Draggable component, something like:

<Draggable
  :items="items"
  text-key="text"
  style-key="style"
  css-key="css"
/>
const items = [
  {
    text: 'test 1',
    style: { backgroundColor: 'red' },
    css: 'some-class-1'
  },
  {
    text: 'test 2',
    style: { backgroundColor: 'green' },
    css: 'some-class-2'
  }
]

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions