1

I try setup different class for tr

this code work, but fancytree when i click to tr - select id add fancytree-active and when i unselect it fancy remove all css classes from tr and add defaults.

How i can persist tr color

$("#"+taskTreeId).fancytree({

extensions: ["dnd", "edit","table","persist"],
        checkbox: false,
        keyboard: false,
        table: {
            indentation: 20,      
            nodeColumnIdx: 2,     
            checkboxColumnIdx: 0  
        },
        renderColumns: function(event, data) {
            var node = data.node,
                $tdList = $(node.tr).find(">td");

            ...


        $tdList.parent('tr')
                .addClass(classAdd)
Cœur
  • 37,241
  • 25
  • 195
  • 267
Developer
  • 2,731
  • 2
  • 41
  • 71

1 Answers1

1

The tr markup is updated every time the state changes, but you could use the 'extraClasses' property to add custom classes that remain.

mar10
  • 14,320
  • 5
  • 39
  • 64