Topic: initRows gone?

Hello,

I was wondering what happened to initRows.  I tried searching and couldn't find anything about it.

I recently updated from an older version and this feature is gone now, and I was getting a good use out of it.

Was there a specific reason it disappeared?

Just curious.  Thanks!

Re: initRows gone?

it's overhead to use special script just for rows. It'll be implemented using changed html/css in future, sooner or later. You can try to use old version of initRows with new version of script may be it's work, but it's not supported more.

Re: initRows gone?

Thanks for the reply.  I was only using it for row coloring.  You're absolutely right about the overhead, it did seem a little weird considering how quick I found a workaround once I was "forced" to.

For anyone who's interested:

In the getHTML function of Mif.Tree.Draw, where the html.push is being written, I added this snippet into the wrapper span (Around line 680):

'<span class="mif-tree-background"></span>',

Then I added CSS rules:

.mif-tree-background {
    width: 100%;
    position: absolute;
    left: 0;
    z-index: -1;
    height: 14px;
}
.mif-tree-node-wrapper:hover .mif-tree-background { background-color: #f0f0f0 !important; }
.mif-tree-node-selected .mif-tree-background { background-color: #e6e6e6 !important; }
.mif-tree-node-selected.mif-tree-node-wrapper:hover .mif-tree-background { background-color: #d9d9d9 !important; }

I've only been using it for a day, so it's far from perfect, but it was the solution I needed.

Keep up the good work!