Search code examples
javascriptfirefoxfirefox-addonfirefox-addon-sdk

How to have a free text input field (textbox) in a toolbar widget with Firefox Addon-SDK


I am using Firefox Addon-SDK to create a toolbar for learning purpose which takes free text and search the webpage for that text, something which ctrl + f does. Based on the SDK documentation, I was able to create a normal button, toggle button, etc. But, I couldn't find anywhere how to create a textbox to take string as input.

How do I create a textbox in the toolbar?


Solution

  • If you want to do it with the SDK, use a frame.

    it can be used in conjunction with aToolbar: you create aFrame, then supply it to the Toolbar's constructor, and the content is then displayed inside the toolbar.