JQuey-ui depends on JQuery

2

Does jquery-ui depend on jquery in an application?, I ask because in the application I'm working on, apparently jquery.min is not being used, and I'm wondering if it has to be there to support jquery-ui.

Thank you in advance, thank you.

    
asked by anonymous 27.09.2018 / 15:02

1 answer

2

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 the core of jQuery 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 display jQuery dependency , since we saw the jQuery UI / p>     

27.09.2018 / 15:46