Does jquery-ui depend on jquery in an application?, I ask because in the application I'm working, apparently jquery.min is not being used, and the question is whether it has to be there to support jquery-ui.
Thank you in advance, thank you.
Does jquery-ui depend on jquery in an application?, I ask because in the application I'm working, apparently jquery.min is not being used, and the question is whether it has to be there to support jquery-ui.
Thank you in advance, thank you.
Yes, totally dependent on jQuery:
"jQuery UI is a cured set of user interface interactions, effects, widgets, and themes built on the jQuery JavaScript library." font
jQuery UI is a collection of GUI widgets, animated visuals, and themes implemented with jQuery (a JavaScript library), Cascading Style Sheets, and HTML. font
The jQuery UI is an interaction tool built on top of the jQuery core that allows you to animate the different HTML elements. source
Fully based on the jQuery framework, , it is used to provide a better interaction between the user and the client (web browser) with rich features like animation, effects, stylized components, etc. source
EXAMPLE: note the two lines script
as the first one is loaded into jQuery and then the jQuery UI and that the line that imports jQuery is removed the example does not work:
$( function() {
$("#draggable").draggable();
});
#draggable {
width: 150px; height: 150px; padding: 0.5em; background-color:blue; color:#FFF;
}
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script><scriptsrc="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<div id="draggable" class="ui-widget-content">
<p>Drag me around</p>
</div>
Note 1: Although in the text aparacer the word Framework
referring to jQuery, it is not considered as such, but rather as a library. Learn the difference here
Note 2: Strange your code does not show dependency on jQuery , since we saw the jQuery UI / p>