사용자:하늘/참고/OO.UI

OO.ui[편집 | 원본 편집]

demo[편집 | 원본 편집]

https://doc.wikimedia.org/oojs-ui/master/demos/?page=widgets&theme=wikimediaui&direction=ltr&platform=desktop

사용법[편집 | 원본 편집]

mw.loader.using(['oojs-ui-core', 'oojs-ui.styles.icons-editing-advanced'], '''function''');

function () { ........

아이콘을 사용하기 위한 모듈
oojs-ui.styles.icons-editing-advanced
oojs-ui.styles.icons-movement
oojs-ui.styles.icons-content
...

아이콘 그룹은 아래 데모에서 확인
https://doc.wikimedia.org/oojs-ui/master/demos/?page=widgets&theme=wikimediaui&direction=ltr&platform=desktop

Depending on which of the features you're going to use, you should list one or more of the following modules as dependencies of your modules that use OOUI:

  • oojs-ui-core — OOUI's core JavaScript library. Contains the basic widgets and layouts that are also available in PHP (see exact list above) and the ability to infuse them.
  • oojs-ui-widgets — Additional widgets and layouts.
  • oojs-ui-toolbars — Toolbar and tools.
  • oojs-ui-windows — Windows and dialogs.
  • oojs-ui.styles.icons-* — Specific icon styles depending on what icons you may want to use, e.g. oojs-ui.styles.icons-interactions for check icon. Group names can be found in demo page or in code.