question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add an example for toolbar menu

See original GitHub issue

Hello everyone, I am trying to create an extension that tries to add an item to the default toolbar menu in the NotebookPanel. I have tried to look at similar extensions like jupyterlab-git to see how they implement it but have found myself unsuccessful. I would like to contribute to this repository with a little bit of help. My questions are around how to access the defaultToolbar (https://github.com/jupyterlab/jupyterlab/blob/f0153e0258b32674c9aec106383ddf7b618cebab/packages/notebook/src/default-toolbar.tsx) and how to add items to it.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
fcollonvalcommented, Jun 15, 2021

Awesome 🎉 I’ll comment on the PR from now one as it will be easier to place comment in the code.

1reaction
fcollonvalcommented, Jun 14, 2021

The idea is to add a button that will trigger the clear all output action in the green area shown below:

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to set menu to Toolbar in Android - java - Stack Overflow
1. Make a menu xml ... This is going to be in res/menu/main_menu . ... Paste in the following content as a starter....
Read more >
Adding a menu to the toolbar in Android | by Suragch - Medium
1. Make a menu xml · Right click the res folder and choose New > Android Resource File. · Type main_menu for the...
Read more >
Set up the app bar - Android Developers
Add a Toolbar to an Activity; Use App Bar Utility Methods ... the title for the activity on one side and an overflow...
Read more >
ToolBar Tutorial With Example In Android Studio
Action Menu: The menu of Actions will pin to the end of the Toolbar offering a few important, typical or frequent actions along...
Read more >
ToolBar in Android with Example - GeeksforGeeks
Search the Toolbar View from the Palette menu present at the top left portion of the Design window. Drag and place it as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found