Sortable: Marginal event descriptions

オープン
#166 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
35/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript, jquery
領域
documentation

調査の方向性

Issue でリンクされている receive イベントと beforeStop イベントの Sortable API エントリから始めます。ui オブジェクトと ui.item の説明を比較し、そのうえで callback のコンテキストと、元の要素とドロップされた要素の間で観察された違いを文書化します。両方のイベントエントリで、ui.item がどのドラッグされた要素を表すのかが明確に説明されていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

When i was applying draggable and sortable i discover a difference between the ui.item that is given to the beforeStop and the receive event.

For both the api description is:
"The jQuery object representing the current dragged element."

http://api.jqueryui.com/sortable/#event-receive
http://api.jqueryui.com/sortable/#event-beforeStop

but when i modify ui.item in the receive callback the origin dragged item is modified, but not the dropped item. While i modify the ui.item in the beforeStop event the dropped item changes and not the origin (i my case the lastest was desired).

Is it possible to describe in the documentation bit more elaborated what the ui object is? or what the context is of the callback event.
With this information the differences between the events become more clear imho.

主要言語
HTML
スター
73
フォーク
75
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

jquery/api.jqueryui.com のほかの issue

jquery/api.jqueryui.com の issue をすべて見る

似ている issue

Documentation の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。