浏览代码

Add documentation about widget.id requirement

Paul Ivanov 8 年之前
父节点
当前提交
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) {