From cabeeca8b6ca7b324c3a551d4b6eaea397f0aeb4 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Fri, 7 Apr 2017 15:38:25 -0700 Subject: [PATCH] Publicize more Dock methods --- src/dock.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/dock.js b/src/dock.js index 8e78b242e..91cc836ea 100644 --- a/src/dock.js +++ b/src/dock.js @@ -96,23 +96,32 @@ module.exports = class Dock { this.setState({draggingItem}) } + // Extended: Show the dock and focus its active {Pane}. activate () { this.getActivePane().activate() } + // Extended: Show the dock without focusing it. show () { this.setState({visible: true}) } + // Extended: Hide the dock and activate the {WorkspaceCenter} if the dock was + // was previously focused. hide () { this.setState({visible: false}) this.didHide() } + // Extended: Toggle the dock's visiblity without changing the {Workspace}'s + // active pane container. toggle () { this.setState({visible: !this.state.visible}) } + // Extended: Check if the dock is visible. + // + // Returns a {Boolean}. isVisible () { return this.state.visible }