3 \page EPGGrid_control EPGGrid control
4 \brief **Used to display the EPG guide in the PVR section.**
8 The epggrid control is used for creating an epg timeline in Kodi. You can choose
9 the position, size, and look of the grid and it's contents.
12 --------------------------------------------------------------------------------
13 \section EPGGrid_control_sect1 Example
16 <control type="epggrid" id="10">
17 <description>EPG Grid</description>
22 <pagecontrol>10</pagecontrol>
23 <scrolltime>350</scrolltime>
24 <timeblocks>40</timeblocks>
25 <rulerunit>6</rulerunit>
26 <progresstexture border="5">PVR-EpgProgressIndicator.png</progresstexture>
27 <orienttation>vertical</orientation>
32 <rulerlayout height="35" width="40">
33 <control type="image" id="1">
38 <texture border="5">button-nofocus.png</texture>
40 <control type="label" id="2">
46 <aligny>center</aligny>
47 <selectedcolor>selected</selectedcolor>
49 <label>$INFO[ListItem.Label]</label>
52 <channellayout height="52" width="280">
53 <animation effect="fade" start="110" time="200">UnFocus</animation>
54 <control type="image" id="1">
59 <texture border="5">button-nofocus.png</texture>
61 <control type="label">
68 <aligny>center</aligny>
69 <textcolor>grey</textcolor>
70 <selectedcolor>grey</selectedcolor>
71 <info>ListItem.ChannelNumber</info>
73 <control type="image">
78 <texture>$INFO[ListItem.Icon]</texture>
80 <control type="label" id="1">
85 <font>special12</font>
86 <aligny>center</aligny>
87 <selectedcolor>selected</selectedcolor>
89 <label>$INFO[ListItem.ChannelName]</label>
92 <focusedchannellayout height="52" width="280">
93 <animation effect="fade" start="110" time="200">OnFocus</animation>
94 <control type="image" id="1">
99 <texture border="5">button-focus.png</texture>
101 <control type="label">
108 <aligny>center</aligny>
109 <textcolor>grey</textcolor>
110 <selectedcolor>grey</selectedcolor>
111 <info>ListItem.ChannelNumber</info>
113 <control type="image">
118 <texture>$INFO[ListItem.Icon]</texture>
120 <control type="label" id="1">
125 <font>special12</font>
126 <aligny>center</aligny>
127 <selectedcolor>selected</selectedcolor>
129 <label>$INFO[ListItem.ChannelName]</label>
131 </focusedchannellayout>
132 <itemlayout height="52" width="40">
133 <control type="image" id="2">
138 <aspectratio>stretch</aspectratio>
139 <texture border="3">epg-genres/$INFO[ListItem.Property(GenreType)].png</texture>
141 <control type="label" id="1">
147 <aligny>center</aligny>
148 <selectedcolor>selected</selectedcolor>
150 <info>ListItem.Label</info>
152 <control type="image">
157 <texture>PVR-IsRecording.png</texture>
158 <visible>ListItem.IsRecording</visible>
160 <control type="image">
165 <texture>PVR-HasTimer.png</texture>
166 <visible>ListItem.HasTimer + !ListItem.IsRecording</visible>
169 <focusedlayout height="52" width="40">
170 <control type="image" id="14">
175 <texture border="5">folder-focus.png</texture>
177 <control type="image" id="2">
182 <aspectratio>stretch</aspectratio>
183 <texture border="3">epg-genres/$INFO[ListItem.Property(GenreType)].png</texture>
185 <control type="label" id="1">
191 <aligny>center</aligny>
192 <selectedcolor>selected</selectedcolor>
194 <info>ListItem.Label</info>
196 <control type="image">
201 <texture>PVR-IsRecording.png</texture>
202 <visible>ListItem.IsRecording</visible>
204 <control type="image">
209 <texture>PVR-HasTimer.png</texture>
210 <visible>ListItem.HasTimer + !ListItem.IsRecording</visible>
217 --------------------------------------------------------------------------------
218 \section EPGGrid_control_sect2 Available tags
220 In addition to the [Default Control Tags](http://kodi.wiki/view/Default_Control_Tags)
221 the following tags are available. Note that each tag is **lower case** only. This is
222 important, as `xml` tags are case-sensitive.
224 | Tag | Description |
225 |----------------------:|:--------------------------------------------------------------|
226 | timeblocks | The number of timeframes on the ruler.
227 | rulerunit | Timeframe of each unit on ruler. 1 unit equals 5 minutes.
228 | rulerdatelayout | The layout of a ruler date item (usually used to display the start date of current epg page).
229 | rulerlayout | The layout of a ruler item.
230 | progresstexture | A texture which indicates the current progress time
231 | channellayout | The layout of a channel item.
232 | focusedchannellayout | The focused layout of a channel item.
233 | itemlayout | The layout of the grid
234 | focusedlayout | The focused layout of the grid
237 --------------------------------------------------------------------------------
238 \section EPGGrid_control_sect3 See also
242 - [Add-on development](http://kodi.wiki/view/Add-on_development)
243 - [Skinning](http://kodi.wiki/view/Skinning)