getAncestor(ancestor_class)
Class: MenuItem. Method inherited from UIComponent.
Description:
Finds and returns first ancestor component of specified class. e.g. panel.getAncestor(Window) will return Window component that panel is in, or null if panel doesn't have a parent or ancestor with specified class.
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
function |
UI Component class that comes with |
Returns:
Type: Object | undefined
