Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#8908 closed feature (notabug)

API to detect ui component bound to a given element

Reported by: abacada Owned by:
Priority: minor Milestone: 1.10.0
Component: ui.core Version: 1.9.2
Keywords: Cc:
Blocked by: Blocking:

Description

Is there any documented or secure way to detect if a certain UI component is being bound to a given input? I could not find it.

One of the use cases is a validation whose structure need to be appended in the same level as the original input but it breaks since jqueryUI creates a different structure as a wrapper for that input.

Change History (3)

comment:1 Changed 7 years ago by Scott González

Resolution: notabug
Status: newclosed

element.is( ":data(namespace-widget)" ), e.g., element.is( ":data(ui-resizable" )

In the future, please ask questions on the forum, not the bug tracker.

comment:2 Changed 7 years ago by abacada

It should be officially documented and not be available by looking at the source or consulting any forum. If this can't be officially documented this ticket should be considered a feature request for "API to detect ui component bound to a given element".

comment:3 Changed 7 years ago by Scott González

Feel free to file a issue at http://github.com/jquery/api.jqueryui.com/issues with a suggestion about where to document this.

Note: See TracTickets for help on using tickets.