O'Reilly logo

Programming Social Applications by Jonathan LeBlanc

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Icon

The Icon element allows the developer to specify a 16×16-pixel thumbnail to be associated with the gadget. Icons usually appear beside the gadget’s title in the context of a gadget gallery. The content of the Icon element can be either a URL to a web-based image or inline base64-encoded image data.

Icon may take the following form:

<ModulePrefs>
    <Icon>http://www.mysite.com/favicon.ico</Icon>
</ModulePrefs>

Table 3-3 lists the attributes available to you when specifying an Icon. Both are optional.

Table 3-3. Icon attributes

Attribute

Description

mode

The encoding you use for the image when embedding it. Only base64 is currently supported.

type

The MIME type of the embedded icon text.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required