How can I can if I its has child element before render #3103
Answered
by
usergenic
jitendraP-ashutec
asked this question in
Q&A
-
I have below structure code for web component
so my question is in web-menu how can I check if its has child node want to manipulate before render into web component. Thanks, |
Beta Was this translation helpful? Give feedback.
Answered by
usergenic
Jun 29, 2022
Replies: 1 comment 3 replies
-
You can use constructor() {
super();
console.log(this.children);
} Curious what you're trying to do? |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
e111077
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
this.children
inside your element as early as inside theconstructor()
as long assuper()
was called.Curious what you're trying to do?