/ Published in: jQuery
Expand |
Embed | Plain Text
Constrains dragging to either the horizontal (x) or vertical (y) axis. Possible values: 'x', 'y'. Code examples Initialize a draggable with the axis option specified. $('.selector').draggable({ axis: 'x' }); Get or set the axis option, after init. //getter var axis = $('.selector').draggable('option', 'axis'); //setter $('.selector').draggable('option', 'axis', 'x');
You need to login to post a comment.
