« Documentation Home

feature element

This documentation relates to Opera's now deprecated .oex Extension API framework for Opera versions <= 12.15 and also provided by our OEX2NEX shim library.

For the latest Opera Extensions API documentation for Opera versions > 12.15 please consult the latest Opera Extensions API documentation online.

Description

The <feature> element declares the use of certain features by the extension, such as being able to display content in speed dial.

The following attributes are associated with the <feature> element:

There are currently two features available to Opera extensions:

Example

The below example shows an extension using both opera:share-cookies and opera:speeddial in order to display the latest messages from the user's account on my.opera.com:

<?xml version='1.0' encoding='utf-8'?>
<widget xmlns="http://www.w3.org/ns/widgets" version="1" viewmodes="minimized" id="http://my.opera.com/someblog">

  <name>Show recently received messages</name>
	
  <description xml:lang="en">Receive timely updates of your message activity on My Opera</description>
  <author>John Smith</author>
  <icon src="images/icon.64x64.png"/>
  
  <access origin="http://my.opera.com" subdomains="true"/>

  <feature name="opera:share-cookies" required="false"/>
  
  <feature name="opera:speeddial" required="true">
    <param name="url" value="http://my.opera.com"/>
  </feature>
  
</widget>