<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.gideros.rocks/index.php?action=history&amp;feed=atom&amp;title=UI.Table</id>
	<title>UI.Table - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.gideros.rocks/index.php?action=history&amp;feed=atom&amp;title=UI.Table"/>
	<link rel="alternate" type="text/html" href="https://wiki.gideros.rocks/index.php?title=UI.Table&amp;action=history"/>
	<updated>2026-11-17T14:19:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.gideros.rocks/index.php?title=UI.Table&amp;diff=22739&amp;oldid=prev</id>
		<title>MoKaLux at 06:20, 17 October 2023</title>
		<link rel="alternate" type="text/html" href="https://wiki.gideros.rocks/index.php?title=UI.Table&amp;diff=22739&amp;oldid=prev"/>
		<updated>2023-10-17T06:20:40Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 06:20, 17 October 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l50&quot;&gt;Line 50:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 50:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;GIDEROS IMPORTANT LINKS&lt;/del&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;UI&lt;/ins&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>MoKaLux</name></author>
	</entry>
	<entry>
		<id>https://wiki.gideros.rocks/index.php?title=UI.Table&amp;diff=22705&amp;oldid=prev</id>
		<title>MoKaLux: Created page with &quot;__NOTOC__ &#039;&#039;&#039;Available since:&#039;&#039;&#039; Gideros 2023.1&lt;br/&gt; &#039;&#039;&#039;Class:&#039;&#039;&#039; UI&lt;br/&gt;  === Description === Creates a Table widget. &lt;syntaxhighlight lang=&quot;lua&quot;&gt; UI.Table.new(columns,di...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.gideros.rocks/index.php?title=UI.Table&amp;diff=22705&amp;oldid=prev"/>
		<updated>2023-10-17T02:29:17Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ &amp;#039;&amp;#039;&amp;#039;Available since:&amp;#039;&amp;#039;&amp;#039; Gideros 2023.1&amp;lt;br/&amp;gt; &amp;#039;&amp;#039;&amp;#039;Class:&amp;#039;&amp;#039;&amp;#039; &lt;a href=&quot;/index.php/UI&quot; title=&quot;UI&quot;&gt;UI&lt;/a&gt;&amp;lt;br/&amp;gt;  === Description === Creates a Table widget. &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; UI.Table.new(columns,di...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Available since:&amp;#039;&amp;#039;&amp;#039; Gideros 2023.1&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Class:&amp;#039;&amp;#039;&amp;#039; [[UI]]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
Creates a Table widget.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
UI.Table.new(columns,direction,cellSpacingX,cellSpacingY,fixed)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;columns&amp;#039;&amp;#039;&amp;#039;: (table) the Table widget columns definition&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;direction&amp;#039;&amp;#039;&amp;#039;: (bool) is it an horizontal Table widget (&amp;#039;&amp;#039;&amp;#039;default = false&amp;#039;&amp;#039;&amp;#039;)&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;cellSpacingX&amp;#039;&amp;#039;&amp;#039;: (number) the Table widget cell spacing on the x axis&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;cellSpacingY&amp;#039;&amp;#039;&amp;#039;: (number) the Table widget cell spacing on the y axis&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;fixed&amp;#039;&amp;#039;&amp;#039;: (bool) is it a fixed Table widget (if true please provide cellSpacingX and cellSpacingY values) (&amp;#039;&amp;#039;&amp;#039;default = false&amp;#039;&amp;#039;&amp;#039;)&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local cols={&lt;br /&gt;
	{ name=&amp;quot;First name&amp;quot;,field=&amp;quot;first&amp;quot;,weight=2},&lt;br /&gt;
	{ name=&amp;quot;Last name&amp;quot;,field=&amp;quot;last&amp;quot;,weight=2},&lt;br /&gt;
	{ name=&amp;quot;Song&amp;quot;,field=&amp;quot;song&amp;quot;,weight=3},&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local rows = {&lt;br /&gt;
	{ first=&amp;quot;Paul&amp;quot;, last=&amp;quot;McCartney&amp;quot;, song=&amp;quot;Maybe I&amp;#039;m Amazed&amp;quot;},&lt;br /&gt;
	{ first=&amp;quot;Ringo&amp;quot;, last=&amp;quot;Starr&amp;quot;, song=&amp;quot;Photograph&amp;quot;},&lt;br /&gt;
	{ first=&amp;quot;George&amp;quot;, last=&amp;quot;Harrison&amp;quot;, song=&amp;quot;My Sweet Lord&amp;quot;},&lt;br /&gt;
	{ first=&amp;quot;John&amp;quot;, last=&amp;quot;Lennon&amp;quot;, song=&amp;quot;Imagine&amp;quot;},&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local gui = UI.Table.new(cols, false, 64, 32, true)&lt;br /&gt;
gui:setData(table.clone(rows))&lt;br /&gt;
&lt;br /&gt;
--gui:setLayoutConstraints({fill=Sprite.LAYOUT_FILL_HORIZONTAL, anchor=Sprite.LAYOUT_ANCHOR_NORTHWEST})&lt;br /&gt;
gui:setDimensions(256, 96)&lt;br /&gt;
gui:setColor(0x5c5c5c)&lt;br /&gt;
gui:setPosition(50, 50)&lt;br /&gt;
&lt;br /&gt;
gui:setAllowColumnResize(true)&lt;br /&gt;
gui:setAllowColumnReorder(true)&lt;br /&gt;
&lt;br /&gt;
local index = #rows+1&lt;br /&gt;
table.insert(rows,index,{ first=&amp;quot;Pauline&amp;quot;, last=&amp;quot;Croze&amp;quot;, song=&amp;quot;Jour de foule&amp;quot;})&lt;br /&gt;
gui:setData(table.clone(rows))&lt;br /&gt;
&lt;br /&gt;
local screen=UI.Screen.new() -- needed to add the table&lt;br /&gt;
screen:ui(gui)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{GIDEROS IMPORTANT LINKS}}&lt;/div&gt;</summary>
		<author><name>MoKaLux</name></author>
	</entry>
</feed>