Static List Content

From Official Kodi Wiki
Revision as of 03:56, 25 July 2007 by >Jmarshall (New page: Container controls (the List Container, Fixed List Container, Wrap List Container, and Panel Container), can be setup by the skinner with some predefined static content. T...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Container controls (the List Container, Fixed List Container, Wrap List Container, and Panel Container), can be setup by the skinner with some predefined static content. This is done by including the <content> tag in the control.

Example

<xml> <content>

 <item>
   <label>My First Item</label>
   <label2>Item 1, Label 2</label2>
   <icon>icon1.png</icon>
   <thumb>thumb1.png</thumb>
   <onclick>ActivateWindow(Home)</onclick>
 </item>
 <item>
   <label>My Second Item</label>
   <label2>Item 2, Label 2</label2>
   <icon>icon2.png</icon>
   <thumb>thumb2.png</thumb>
   <onclick>ActivateWindow(MyMusicLibrary)</onclick>
 </item>

</content> </xml>

Available tags

The available XML tags for each item are as follows. Note that, as always, they're lower-case only, as XML is case-sensitive.

label The main label of the item. You can reference this within the <itemlayout> of the list via ListItem.Label.
label2 The secondary label of the item. You can reference this within the <itemlayout> of the list via ListItem.Label2.
icon The icon of the item. You can reference this within the <itemlayout> of the list via ListItem.Icon, or ListItem.ActualIcon.
thumb The thumbnail image of the item. You can reference this within the <itemlayout> of the list via ListItem.Thumb.
onclick The action to be performed when this item is clicked. Should be a built in function. See here for more information.