General developer forum

Using JQueryUi functions

 
Picture of Mohammad Eftekhari
Re: Using JQueryUi functions
 

Found the solution.

define(['jquery','jqueryui'],
function($, jqui) { //loads dependencies
var functions = {
init : function() {
$("#leftside").resizable();
}
};
return functions;
});


The third one was correct as it should be. The problem was something else.

When "jquery-ui.css" is not included the resizable function doesn't work. Make sure Moodle or You have included this file. "$PAGE->requires->css..."

 
Average of ratings: -