Parcourir la source

Addressing minor review comments.

Brian E. Granger il y a 4 ans
Parent
commit
ec81938765
2 fichiers modifiés avec 12 ajouts et 2 suppressions
  1. 4 2
      packages/apputils/src/toolbar.tsx
  2. 8 0
      packages/docmanager/src/manager.ts

+ 4 - 2
packages/apputils/src/toolbar.tsx

@@ -459,8 +459,10 @@ export namespace ToolbarButtonComponent {
     enabled?: boolean;
 
     /**
-     * Trigger the button on the actual onClick event rather than onMouseDown. See note below as to why the
-     * default is to trigger on onMouseDown.
+     * Trigger the button on the actual onClick event rather than onMouseDown.
+     *
+     * See note in ToolbarButtonComponent below as to why the default is to
+     * trigger on onMouseDown.
      */
     actualOnClick?: boolean;
   }

+ 8 - 0
packages/docmanager/src/manager.ts

@@ -78,10 +78,18 @@ export class DocumentManager implements IDocumentManager {
     return this._activateRequested;
   }
 
+  /**
+   * The document mode of the document manager, either 'single-document' or 'multiple-document'.
+   *
+   * This is usually synced with the `mode` attribute of the shell.
+   */
   get mode(): string {
     return this._mode;
   }
 
+  /**
+   * Set the mode of the document manager, either 'single-document' or 'multiple-document'.
+   */
   set mode(value: string) {
     this._mode = value;
   }