Просмотр исходного кода

Add documentation about widget.id requirement

Paul Ivanov 8 лет назад
Родитель
Сommit
8ef7e3fd01
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      src/application/shell.ts

+ 3 - 0
src/application/shell.ts

@@ -160,6 +160,9 @@ class ApplicationShell extends Widget {
 
   /**
    * Add a widget to the top content area.
+   *
+   * #### Notes
+   * Widgets must have a unique `id` property
    */
   addToTopArea(widget: Widget, options: ISideAreaOptions = {}): void {
     if (!widget.id) {