<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://www.lets-role.wiki/index.php?action=history&amp;feed=atom&amp;title=Use_repeaters</id>
	<title>Use repeaters - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://www.lets-role.wiki/index.php?action=history&amp;feed=atom&amp;title=Use_repeaters"/>
	<link rel="alternate" type="text/html" href="https://www.lets-role.wiki/index.php?title=Use_repeaters&amp;action=history"/>
	<updated>2026-05-25T06:24:07Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://www.lets-role.wiki/index.php?title=Use_repeaters&amp;diff=28&amp;oldid=prev</id>
		<title>Neo-Teyrall : premier jets pour la création d&#039;un répeateur</title>
		<link rel="alternate" type="text/html" href="https://www.lets-role.wiki/index.php?title=Use_repeaters&amp;diff=28&amp;oldid=prev"/>
		<updated>2025-08-28T22:13:20Z</updated>

		<summary type="html">&lt;p&gt;premier jets pour la création d&amp;#039;un répeateur&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Repeaters are tools that allow you to dynamically add views.  They are very useful for managing inventories, lists of skills, or all of a character’s actions.&lt;br /&gt;
&lt;br /&gt;
== Create Repeater ==&lt;br /&gt;
&lt;br /&gt;
=== Step 1: Create two subviews ===&lt;br /&gt;
Create two subviews: an &amp;#039;&amp;#039;&amp;#039;edit view&amp;#039;&amp;#039;&amp;#039; and a &amp;#039;&amp;#039;&amp;#039;read view&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Edit view&amp;#039;&amp;#039;&amp;#039;: contains the form fields that the user will fill.Add components such as TextInput, Checkbox, List, NumberInput, Textarea, Choice, etc.  Assign a clear and unique &amp;#039;&amp;#039;&amp;#039;id&amp;#039;&amp;#039;&amp;#039; to each field.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Read view&amp;#039;&amp;#039;&amp;#039;: displays the information entered in the edit view.  &lt;br /&gt;
Use &amp;#039;&amp;#039;&amp;#039;Label&amp;#039;&amp;#039;&amp;#039; components and reference the edit view fields using &amp;lt;code&amp;gt;#field_id&amp;lt;/code&amp;gt;.  This will automatically copy and update the data.&lt;br /&gt;
&lt;br /&gt;
=== Step 2: Insert the Repeater component ===&lt;br /&gt;
Insert a &amp;#039;&amp;#039;&amp;#039;Repeater&amp;#039;&amp;#039;&amp;#039; component in your main view.&lt;br /&gt;
&lt;br /&gt;
=== Step 3: Link the views to the Repeater ===&lt;br /&gt;
In the Repeater properties, set:&lt;br /&gt;
&lt;br /&gt;
* the edit view  &lt;br /&gt;
* the read view  &lt;br /&gt;
&lt;br /&gt;
=== Step 4: Add views ===&lt;br /&gt;
Add new views by clicking the &amp;#039;&amp;#039;&amp;#039;Add&amp;#039;&amp;#039;&amp;#039; button of the Repeater.&lt;br /&gt;
&lt;br /&gt;
* The first view displayed is the &amp;#039;&amp;#039;&amp;#039;edit view&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
* Once you press the &amp;#039;&amp;#039;&amp;#039;Done&amp;#039;&amp;#039;&amp;#039; button, the edit view is replaced by the &amp;#039;&amp;#039;&amp;#039;read view&amp;#039;&amp;#039;&amp;#039;.  &lt;br /&gt;
&lt;br /&gt;
== Communication between edit and read views ==&lt;br /&gt;
The edit view stores the information, and the read view displays it.&lt;br /&gt;
&lt;br /&gt;
Simple example:&lt;br /&gt;
&lt;br /&gt;
# In the edit view, add a &amp;#039;&amp;#039;&amp;#039;TextInput&amp;#039;&amp;#039;&amp;#039; component with the id &amp;#039;&amp;#039;&amp;#039;test_input&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
# In the read view, add a &amp;#039;&amp;#039;&amp;#039;Label&amp;#039;&amp;#039;&amp;#039; component.&lt;br /&gt;
# In its text field (right panel), enter &amp;lt;code&amp;gt;#test_input&amp;lt;/code&amp;gt; and check &amp;#039;&amp;#039;&amp;#039;Computed&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
# Test the repeater: add a new view, type &amp;quot;hello&amp;quot; in the field, and click &amp;#039;&amp;#039;&amp;#039;Done&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
→ The label in the read view will display &amp;#039;&amp;#039;&amp;#039;hello&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
To display multiple values in the same Label, concatenate them:  &amp;lt;code&amp;gt;&amp;quot;The value is: &amp;quot; + #test_input + &amp;quot; and &amp;quot; + #test_input2&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conditional display ==&lt;br /&gt;
You can show a default value when no field is set, using the conditional function:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;quot;The value is: &amp;quot; + if(#test_input=0, &amp;quot;[No value]&amp;quot;, #test_input)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If no text is entered → &amp;#039;&amp;#039;&amp;#039;The value is: [No value]&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* If &amp;quot;hello&amp;quot; is entered → &amp;#039;&amp;#039;&amp;#039;The value is: hello&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Other Repeater tutorials ==&lt;br /&gt;
&lt;br /&gt;
* Setting actions on Repeater buttons&lt;br /&gt;
* Moving a view from one Repeater to another&lt;br /&gt;
* Changing the order of views in a Repeater&lt;/div&gt;</summary>
		<author><name>Neo-Teyrall</name></author>
	</entry>
</feed>