Ver código fonte

Add documentation about widget.id requirement

Paul Ivanov 8 anos atrás
pai
commit
8ef7e3fd01
1 arquivos alterados com 3 adições e 0 exclusões
  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) {