newlvl
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2018
01:48 PM
Traversing components hierarchy
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,
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,
1 REPLY 1
newlvl
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2018
07:17 AM
Re: Traversing components hierarchy
Well, it is pretty simple:
ContentNode has the parentSubtype() method that does exactly, what is needed.
ContentNode has the parentSubtype() method that does exactly, what is needed.