dom-inspector icon indicating copy to clipboard operation
dom-inspector copied to clipboard

How to exclude all childs of a class ?

Open PrestaMagician opened this issue 5 years ago • 2 comments

Hi, As indicated in the title how to exclude all childs of a class. Currently if I do exclude:['.myclass','.myotherclass'] only the element who has the defined classes are exclude but not the childrens. How to do that ? Best regards,

PrestaMagician avatar Mar 13 '20 10:03 PrestaMagician

try

const inspector = new DomInspector({
  root: 'body',
  exclude: ['.myclass *',]
});

luoye-fe avatar Mar 18 '20 04:03 luoye-fe

ping

luoye-fe avatar Sep 10 '20 07:09 luoye-fe