sparnatural
Version:
Visual client-side SPARQL query builder and knowledge graph exploration tool
13 lines • 792 B
JavaScript
//Input is completed by either choosing widgetvalue or adding a whereChild
export function completeGrpInput(grpWrapper) {
grpWrapper.CriteriaGroup.EndClassGroup.renderSelectViewVar();
if (grpWrapper.CriteriaGroup.StartClassGroup.renderEyeBtn) {
// only highlite when eye Btn is rendered.
grpWrapper.CriteriaGroup.StartClassGroup.inputSelector.html[0].classList.add("Highlited");
}
grpWrapper.html[0].classList.add("completed");
grpWrapper.CriteriaGroup.EndClassGroup.inputSelector.html[0].classList.add("Highlited");
grpWrapper.html[0].dispatchEvent(new CustomEvent("generateQuery", { bubbles: true }));
grpWrapper.html[0].dispatchEvent(new CustomEvent("redrawBackgroundAndLinks", { bubbles: true }));
}
//# sourceMappingURL=CompleteGrpInput.js.map