Prechádzať zdrojové kódy

Docs update to cell widget.

Brian E. Granger 8 rokov pred
rodič
commit
8232040f1a
1 zmenil súbory, kde vykonal 16 pridanie a 0 odobranie
  1. 16 0
      packages/cells/src/widget.ts

+ 16 - 0
packages/cells/src/widget.ts

@@ -290,6 +290,14 @@ class Cell extends Widget {
     this.handleInputHidden(value);
   }
 
+  /**
+   * Handle the input being hidden.
+   * 
+   * #### Notes
+   * This is called by the `inputHidden` setter so that subclasses
+   * can perform actions upon the input being hidden without accessing
+   * private state.
+   */
   protected handleInputHidden(value: boolean): void {
     return;
   }
@@ -574,6 +582,14 @@ class CodeCell extends Cell {
     this._outputHidden = value;
   }
 
+  /**
+   * Handle the input being hidden.
+   * 
+   * #### Notes
+   * This method is called by the case cell implementation and is
+   * subclasses here so the code cell can watch to see when input
+   * is hidden without accessing private state.
+   */
   protected handleInputHidden(value: boolean): void {
     if (!value && this._outputWrapper.isHidden) {
       this._outputWrapper.show();