jQueryUIをソート可能にして、altまたはctrlでアイテムを複製し、それなしで複製しないようにする方法はありますか?私はこれをしました
$(this).sortable({
activate: function(event, ui) {
if (event.altKey) {
ui.item.before(ui.item.clone().removeAttr('style'));
}
},
stop: function(event, ui) {
...
},
receive: function(event, ui) {
...
},
});
多分使用することによってより良い方法があり.sortable( "option", "helper", "clone" );
ますか?