Я використовую jQueryUI 1.8.14, і я хотів би зрозуміти, як використовувати допоміжні методи, пов'язані з сортуючим списком jQueryUI :
ui.helper - the current helper element (most often a clone of the item)
ui.position - current position of the helper
ui.offset - current absolute position of the helper
ui.item - the current dragged element
ui.placeholder - the placeholder (if you defined one)
ui.sender - the sortable where the item comes from (only exists if you move from one connected list to another)
Наприклад, якщо я запускаю alert (ui.position)
подібно до наведеного нижче
$jQ("#sortable").sortable({
update: function(event, ui) {
alert(ui.position)
}
});
I get an alert message like this: "[object Object]
"... how can I inspect that object (eg: in order to retrieve the position value - that is, an integer value)?