Recent Changes - Search:

Administrators

Developers

Articles

Cookbook

edit

getParentByType method

The getParentByType searches the widget hierarchy up and returns the first widget found of the requested type.

Syntax

Syntax
widget.getParentByType(wtype);
Parameterswtype : Required. The name of the constructor function of the widget you are searching for.
ReturnsObject Widget or null.

Example

var win = widget.getParentByType(Window);

This example demonstrates how to get the window in which a widget is contained.

Page last modified on October 01, 2007, at 03:05 PM