code snippets here produce/render expected data and alert box shows [object HTMLDivElement] the div will not hide; same is true using "visibility", "hidden"

           <input id="readGroups" type="button" value="Read Groups using GRAPH"/> 
           <input id="readWorkOrderUsers" type="button" value="View Your Work Orders"/> 
      <div class="${styles.container}" id="groupTableContainer"></div>
      <div class="${styles.container}" id="workOrderTableContainer"></div>

               .addEventListener('click',() => {
                var groupContainer : Element = this.domElement.querySelector('#groupTableContainer');

This because display is not an attribute of the HTML element groupTableContainer.

Style is an attribute, therefor this should work:

groupContainer.setAttribute("style", "{display:none;}");
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.