bd:get-component-id

Purpose

Returns the value of the component-id attribute of an element. If the element is not specified or the specified element has no component-id attribute, then this function delegates to the bd:get-id function.

Signature

bd:get-component-id(element?)

Parameter

Name Description Type Use
element The element whose component-id is to be retrieved. element() optional 

Example

Please see the topic entitled Creating a reusable component for a concrete example.

Related topics