編集:
jQuery UI の選択可能なウィジェットにはコールバックが組み込まれていstop
ます。このイベントをプログラムでトリガーする方法を知る必要があります。
(これは表現が不十分でした)
イベント リスナーを jQuery UI Selectable Widgetにアタッチしました。stop
プログラムでイベントをトリガーするにはどうすればよいですか?
Ex 選択可能:
$("table").selectable({
filter: "tr",
stop: function(){
//do stuff
}
});
// Various attempts at triggering the stop event
// one
$("table .ui-selected").click();
// two
$("table .ui-selected").select();
// three
$("table .ui-selected").trigger("click");
// shot in the dark 1
$("table").selectable('widget').trigger('stop');
// Shot in the dark 2
$("table").trigger('stop');
// really long shot in the dark
$("table").selectable('widget').call('stop');
さらなる試み
// selectablestop event
$("#table").selectable('widget').trigger('selectablestop');
$("#table .ui-selected").trigger('selectablestop');