Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sidebar #20

Open
dascritch opened this issue Oct 3, 2017 · 3 comments
Open

Add sidebar #20

dascritch opened this issue Oct 3, 2017 · 3 comments

Comments

@dascritch
Copy link
Owner

Add a sidebar with the anchors lists (linked to the anchor)

@dascritch
Copy link
Owner Author

I want to take control on the sidebar documennt when i'm clicking the button. Someone has an idea ?

@makyen
Copy link
Contributor

makyen commented Oct 4, 2017

Do you mean the actual Firefox sidebar? If so, you use a sidebarAction. However, it's a Firefox and Opera only feature. I'm not sure if I'd want to use a sidebar (I generally don't use any other sidebars). I've opened the sidebar more times by mistake than on purpose.

I was going to ask for an option to be able to have/not have the sidebar. Unfortunately, there is no way to make the actual sidebar optional, as you get to define only one of sidebar_action, browser_action, or page_action in the manifest.json file. There is no runtime way to switch between them.

If you mean add an in-page sidebar (works across all browsers), then you can add an iframe to the current document with the content you desire, positioned as you desire (left, right, top, bottom, or wherever and/or user movable). Doing so can also be made optional.

@dascritch
Copy link
Owner Author

Hi Makyen !

Yes, i've wired sidebarAction and the problem is to get the sidebar in my js code when i click on the menu button.
I've already a plan to make the sidebar optional : do not call it ;) , code is written but commented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants