Explorar o código

Add documentation about widget.id requirement

Paul Ivanov %!s(int64=8) %!d(string=hai) anos
pai
achega
8ef7e3fd01
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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) {