This topic has been closed. No new entries allowed.
Reason: You can now post comments on articles on Dev Opera
You need to be logged in to post in the forums. If you do not have an account, please sign up first.
Adding a docked mode to your widgetsOpera Widgets are required to be run on various devices under differing UI constraints. In some cases, the UI needs to be interactive and in others only informative. To support this, Opera Widgets can be viewed in different modes, each mode giving the widget a slightly different environment to render in.
( Read the article )
25. May 2008, 07:18:12 (edited)
18. June 2008, 14:56:47 (edited)
I have two separate divs, one for widget and one for docked in my index, like the article says.
I have placed the line <widget dockable="yes"> into the config.xml file, like the article says.
<button onclick="handleDockedMode();">Dock it</button>
then I also tried:
<button onclick="handleModeChange(widgetmodechange);">Dock it</button>
I guess I just would like to know how to code the dockable button portion.
Any assistance is appreciated.
Where to get?
document.getElementById("widget").style.display = "none";
<div id="widget">This text should be hidden.</div>
<div id="docked">This text should be visible.</div>