Your Digital Media Has Never Looked So Good

 
newlvl
Topic Author
Posts: 7
Joined: Fri Aug 31, 2018 1:31 pm

Traversing components hierarchy

Fri Aug 31, 2018 1:48 pm

Hi,

Suppose, I have an hierarchy of components

"C" extends "B", which extends "A".

Is it a way based on a given instance of "C" to know what component it extends and what component its extended component extends?
Alternatively, if they implemented a method that returned this information, is it a way to call the "base" component's method?

Thanks,
 
newlvl
Topic Author
Posts: 7
Joined: Fri Aug 31, 2018 1:31 pm

Re: Traversing components hierarchy

Wed Oct 31, 2018 7:17 am

Well, it is pretty simple:

ContentNode has the parentSubtype() method that does exactly, what is needed.

Who is online

Users browsing this forum: No registered users and 3 guests