2010-07-21 6 views

Répondre

9

Voir l'option axis:

"Contraint glisser soit à l'horizontal (x) ou de l'axe vertical (y) Valeurs possibles:. 'X', 'y'."

Exemples:

// Initialize a draggable with the axis option specified. 
$(".selector").draggable({ axis: 'x' }); 

// Get the axis option, after initialization. 
var axis = $('.selector').draggable('option', 'axis'); 
// Set the axis option, after initialization. 
$('.selector').draggable('option', 'axis', 'x'); 
+0

Merci, cela me aidera – milan

Questions connexes