<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/CustomTableView:addLine?action=history&amp;feed=atom</id>
	<title>CustomTableView:addLine - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/CustomTableView:addLine?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CustomTableView:addLine&amp;action=history"/>
	<updated>2026-11-17T14:03:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CustomTableView:addLine&amp;diff=57510&amp;oldid=prev</id>
		<title>AriosJentu: Created page with &quot;__NOTOC__ {{Client function}} This function adds line to Custom Table View.  == Syntax == &lt;syntaxhighlight lang=&quot;lua&quot;&gt; cline CustomTableView:addLine([float Height]) &lt;/syntaxhi...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CustomTableView:addLine&amp;diff=57510&amp;oldid=prev"/>
		<updated>2018-08-06T08:57:36Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ {{Client function}} This function adds line to Custom Table View.  == Syntax == &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; cline CustomTableView:addLine([float Height]) &amp;lt;/syntaxhi...&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;
{{Client function}}&lt;br /&gt;
This function adds line to Custom Table View.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
cline CustomTableView:addLine([float Height])&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Other Arguments === &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Height&amp;#039;&amp;#039;&amp;#039; - Height of line. Default - &amp;#039;&amp;#039;22&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
=== Returns ===&lt;br /&gt;
Returns table with parameters of line, called &amp;#039;&amp;#039;cline&amp;#039;&amp;#039;.	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
[[Image:CustomTabViewDefault.png|thumb|right|Code Example]]&lt;br /&gt;
[[Image:CustomTableViewAsScrollableList.png|thumb|right|Code Example with &amp;quot;K&amp;quot; clicked]]&lt;br /&gt;
This example creates window with table view, here added some columns and lines (rows), changed indentation between lines, removed line, removed column, set selected line, and filling of cells. Bound &amp;#039;&amp;#039;K&amp;#039;&amp;#039; button for showing and hiding title panel of Table View:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local Window = CustomWindow.create(50, 50, 250, 220, &amp;quot;Example&amp;quot;)&lt;br /&gt;
local TabView = CustomTableView.create(5, 25, 130, 40, false, Window)&lt;br /&gt;
&lt;br /&gt;
TabView:addLine(21)&lt;br /&gt;
local nline = TabView:addLine(25)&lt;br /&gt;
TabView:addLine(21)&lt;br /&gt;
local line = TabView:addLine(28)&lt;br /&gt;
TabView:addLine(21)&lt;br /&gt;
TabView:addLine(31)&lt;br /&gt;
TabView:addLine(21)&lt;br /&gt;
TabView:addLine(35)&lt;br /&gt;
TabView:addLine(21)&lt;br /&gt;
&lt;br /&gt;
TabView:removeLine(line)&lt;br /&gt;
TabView:setIndentation(5)&lt;br /&gt;
TabView:setSize(240, 190, false)&lt;br /&gt;
&lt;br /&gt;
TabView:setSelectedLine(3)&lt;br /&gt;
&lt;br /&gt;
TabView:addColumn(&amp;quot;Example&amp;quot;, 90)&lt;br /&gt;
TabView:addColumn(&amp;quot;Removed&amp;quot;, 90)&lt;br /&gt;
local col = TabView:addColumn(&amp;quot;Saved&amp;quot;, 90)&lt;br /&gt;
TabView:addColumn(&amp;quot;Last&amp;quot;, 90)&lt;br /&gt;
&lt;br /&gt;
TabView:removeColumn(&amp;quot;Removed&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
for i = 1, TabView:getLinesCount() do&lt;br /&gt;
	for j = 1, TabView:getColumnsCount() do&lt;br /&gt;
		TabView:setCellText(i, j, i..&amp;quot; &amp;quot;..j)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
bindKey(&amp;quot;k&amp;quot;, &amp;quot;up&amp;quot;, function()&lt;br /&gt;
	TabView:setTitleBarVisible(not TabView:getTitleBarVisible())&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
Window:setColorScheme(Themes.Dark.Red)	&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
{{CWSFUNCS}}&lt;/div&gt;</summary>
		<author><name>AriosJentu</name></author>
	</entry>
</feed>