소스 검색

Docs: Add missing docs for DropdownPanelView.

Maciej Gołaszewski 7 년 전
부모
커밋
8f01777341
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 10 0
      packages/ckeditor5-ui/src/dropdown/dropdownpanelview.js

+ 10 - 0
packages/ckeditor5-ui/src/dropdown/dropdownpanelview.js

@@ -66,12 +66,22 @@ export default class DropdownPanelView extends View {
 		} );
 	}
 
+	/**
+	 * Focuses the view element or first item in view collection on opening dropdown's panel.
+	 *
+	 * See also {@link module:ui/dropdown/dropdownpanelfocusable}.
+	 */
 	focus() {
 		if ( this.children.length ) {
 			this.children.first.focus();
 		}
 	}
 
+	/**
+	 * Focuses the view element or last item in view collection on opening dropdown's panel.
+	 *
+	 * See also {@link module:ui/dropdown/dropdownpanelfocusable}.
+	 */
 	focusLast() {
 		if ( this.children.length ) {
 			const lastChild = this.children.last;