File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed
tutorials/quick-start-panel Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -113,8 +113,6 @@ function create() {}
113
113
114
114
function show (event ) {}
115
115
116
- function hide (event ) {}
117
-
118
116
function update (selection ) {}
119
117
120
118
module .exports = {
@@ -234,19 +232,7 @@ This code does the following:
234
232
1 . The ` show ` lifecycle method gives you access to an ` event ` argument which includes a ` node ` property that you can attach your user interface to.
235
233
2 . Adds the panel UI container returned from the ` create ` helper function to ` event.node ` if ` panel ` does not exist in the dom already.
236
234
237
- #### Remove the UI
238
-
239
- One of the optional lifecycle methods for panels is ` hide ` , which runs when the user navigates away from your panel.
240
-
241
- ``` js
242
- function hide (event ) { // [1]
243
- // This function triggers when the panel is hidden by user
244
- }
245
- ```
246
-
247
- This code does the following:
248
-
249
- 1 . The ` event ` argument that is passed includes a ` node ` property, just like we saw for the ` show ` lifecycle method.
235
+ You can also optionally provide a ` hide ` lifecycle method for your panel, but we don't need to for this example.
250
236
251
237
#### Update your UI
252
238
@@ -288,7 +274,6 @@ module.exports = {
288
274
panels: {
289
275
enlargeRectangle: {
290
276
show,
291
- hide,
292
277
update
293
278
}
294
279
}
You can’t perform that action at this time.
0 commit comments