widget element
From Opera 15 onward, Opera 11 & 12’s extension format is no longer supported, and instead, we’ve switched to Chromium’s extension model. Check out our new documentation for developing extensions for Opera 15 and higher and start building your own extensions.
Description
The <widget>
element is the container element under which the rest of the elements of the config.xml file go. The following attributes are associated with it.
id
: A URL that uniquely identifies the widget or extension.- This is used by the browser for identifying installations and for automatically updating the extension.
- The
id
is set automatically by the Opera extensions repository when a new extension is uploaded. - Developers should add an
id
attribute during development to avoid installing multiple instances of the same extension.
version
: Specifies a version of the extension.
Example
<?xml version="1.0" encoding="utf-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" id="http://example.com/myExtension" version="1.0">
...
</widget>
This article is licensed under a Creative Commons Attribution 3.0 Unported license.
Comments