ValYouW / jqPropertyGrid

A small property grid in JS to view/edit POJOs
MIT License
57 stars 33 forks source link

Hide others group #20

Open tugrulduran opened 6 years ago

tugrulduran commented 6 years ago

If you dont wanna show items those aren't identified in the your template, just add another condition to line 100 like this:

if (propertyRowsHTML[OTHER_GROUP_NAME] && options.showOthers && options.showOthers === true) {
    innerHTML += getGroupHeaderRowHtml(OTHER_GROUP_NAME, options.isCollapsible);
    innerHTML += propertyRowsHTML[OTHER_GROUP_NAME];
}

and add showOthers: true/false to your calling options.