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.
bd:get-component-id(element?)
Name | Description | Type | Use |
---|---|---|---|
element | The element whose component-id is to be retrieved. | element() | optional |
Please see the topic entitled Creating a reusable component for a concrete example.