Skip to end of metadata
Go to start of metadata

ElementPtr FB::DOM::Element::getElement ( const int  idx  )  const [inline, virtual]

Gets a child element of the specified name.

This is the rough equivilent of the following javascript command

      var el2 = element[idx];
Parameters:
idx Zero-based index of the element to fetch.
Returns:
The child element.

Definition at line 212 of file ScriptingCore/DOM/Element.h.

00213         {
00214             JSObjectPtr api = getProperty<FB::JSObjectPtr>(idx);
00215             ElementPtr retVal((api) ? new Element(api) : NULL);
00216             return retVal;
00217         }


Generated on 19 Jun 2013 for FireBreath by  doxygen 1.6.1
Labels
  • None