OOUI/ウィジェット

From mediawiki.org
This page is a translated version of the page OOUI/Widgets and the translation is 50% complete.

ウィジェットは、利用者が表示および操作できる 1 つ以上の OOUI elements の複合体です。 すべてのウィジェットは標準 API を介して構成および変更でき、その状態はモデルに応じて動的に変更できます。 ライブラリは、アプリケーションの低レベルの DOM イベント (clickkeydownmouseup など) を処理し、「ノイズ」をフィルタリングし (例えば、実際の変更が発生しない同じコンテンツのコピーと貼り付け)、アプリケーションにとって高レベルで重要なイベントを放出します (OOjs/Events を参照)。

The OOUI library contains a number of ready-to-customize widgets that fall into several main categories: buttons and switches, icons, indicators and labels, selects and options, input widgets, popups, and progress bars. When used together with layouts, these widgets can create high-level components like dialog or modal windows.

Note that not every widget in the library is commonly used ‘out-of-the-box’. Some widgets, such as MenuWidgets, are designed to be extended and will rarely be instantiated on their own.

If you are interested in “Extending the Library” - please write documentation for it once you know how to :)

ウィジェット