Closed shaunmauer closed 6 years ago
I'll look into it either tomorrow or in the weekend, but it'll most likely involve you having to change some of the plug-in code. It'll at this point in time not be a simple toggle, since plug-ins can only have up to 25 custom attributes and I'm hitting that limit.
Hey, to accomplish this you'll have to do the following (note: exact line numbers may change)
<col width="30px"></col>
<th>#</th>
. Do NOT remove the other code from that line.nodeColumnIdx: 1,
. Change that value to "0" to have the title render in the first column.$tdList.eq(0).text(node.getIndexHier()).addClass("alignRight");
. Remove this code, as this code renders the numbers that you want to have removed.$tdList.eq(i+1).text(customData[Object.keys(customData)[i-1]]);
. Change that to $tdList.eq(i).text(customData[Object.keys(customData)[i-1]]);
.Once you've done this, it should not render the numbers anymore and render the title/value of the row in the first column. If you just want the first column empty, you only have to do step 4.
Hi
I found another way to do this. I just use CSS to hide it.
Replace STATIC_ID with the static ID of the tree in Apex.
Hide the header and the actual numbers
#treeSTATIC_ID >thead th:nth-child(1), #treeSTATIC_ID >tbody td:nth-child(1) {
display: none;
}
Only problem with this is the column widths arent the right size afterwards, so I need to adjust the size(which I wanted to do anyway)
#treeSTATIC_ID >thead th:nth-child(2) {
width:350px;
}
Hi
Is it possible to choose to not show the table numbering column (the first one) when using the table column.