for example, I define a JET button like this:
<button id= "button" data-bind="click: buttonClick,
ojComponent: { component: 'ojButton', label: 'A button element' }">
</button>
When I get the button DOM element in HTML, how can I get the JET component type of this DOM element?
In this example, I want to get "ojButton" as the result.
Is there any JET api for this?
And I come up with a way to get this, which is to analysis the value of 'data-bind' attribute coz it contains component definition.
But I don't know if this method is stable and if component definition will always display in HTML code at client side.