<?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=Button</id>
	<title>Button - 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=Button"/>
	<link rel="alternate" type="text/html" href="https://www.lets-role.wiki/index.php?title=Button&amp;action=history"/>
	<updated>2026-05-25T04:40:06Z</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=Button&amp;diff=107&amp;oldid=prev</id>
		<title>Neo-Teyrall : ajout d’un tuto pour les lancé de jet</title>
		<link rel="alternate" type="text/html" href="https://www.lets-role.wiki/index.php?title=Button&amp;diff=107&amp;oldid=prev"/>
		<updated>2025-10-08T16:27:24Z</updated>

		<summary type="html">&lt;p&gt;ajout d’un tuto pour les lancé de jet&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;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 8 octobre 2025 à 18:27&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-l60&quot;&gt;Ligne 60 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 60 :&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;You can find tutorials that use buttons here:&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;You can find tutorials that use buttons here:&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;# Roll &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;a dice [TODO&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;[[Manage &lt;/ins&gt;Roll&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]&lt;/ins&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;div&gt;# Hide and show elements [TODO]&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;# Hide and show elements [TODO]&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;div&gt;# Send information to the chat [TODO]&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;# Send information to the chat [TODO]&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;div&gt;# Move a view inside a repeater [TODO]&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;# Move a view inside a repeater [TODO]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Neo-Teyrall</name></author>
	</entry>
	<entry>
		<id>https://www.lets-role.wiki/index.php?title=Button&amp;diff=31&amp;oldid=prev</id>
		<title>Neo-Teyrall : Page créée avec « = Buttons = Buttons are components that can trigger multiple actions.  There are three main ways to create a button:  the first two are simple, while the third allows you to build more complex buttons.  == Button with an icon ==  # Add an &#039;&#039;&#039;Icon&#039;&#039;&#039; component and choose the desired icon. # You can assign an action to the icon in two different ways: #* Fill in the &#039;&#039;&#039;Roll&#039;&#039;&#039; field with a dice roll and the roll’s title.   #* Add the class &#039;&#039;&#039;clickable&#039;&#039;&#039; and [lin... »</title>
		<link rel="alternate" type="text/html" href="https://www.lets-role.wiki/index.php?title=Button&amp;diff=31&amp;oldid=prev"/>
		<updated>2025-08-31T18:24:58Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « = Buttons = Buttons are components that can trigger multiple actions.  There are three main ways to create a button:  the first two are simple, while the third allows you to build more complex buttons.  == Button with an icon ==  # Add an &amp;#039;&amp;#039;&amp;#039;Icon&amp;#039;&amp;#039;&amp;#039; component and choose the desired icon. # You can assign an action to the icon in two different ways: #* Fill in the &amp;#039;&amp;#039;&amp;#039;Roll&amp;#039;&amp;#039;&amp;#039; field with a dice roll and the roll’s title.   #* Add the class &amp;#039;&amp;#039;&amp;#039;clickable&amp;#039;&amp;#039;&amp;#039; and [lin... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Buttons =&lt;br /&gt;
Buttons are components that can trigger multiple actions.&lt;br /&gt;
&lt;br /&gt;
There are three main ways to create a button:  the first two are simple, while the third allows you to build more complex buttons.&lt;br /&gt;
&lt;br /&gt;
== Button with an icon ==&lt;br /&gt;
&lt;br /&gt;
# Add an &amp;#039;&amp;#039;&amp;#039;Icon&amp;#039;&amp;#039;&amp;#039; component and choose the desired icon.&lt;br /&gt;
# You can assign an action to the icon in two different ways:&lt;br /&gt;
#* Fill in the &amp;#039;&amp;#039;&amp;#039;Roll&amp;#039;&amp;#039;&amp;#039; field with a dice roll and the roll’s title.  &lt;br /&gt;
#* Add the class &amp;#039;&amp;#039;&amp;#039;clickable&amp;#039;&amp;#039;&amp;#039; and [link|connect the button to a JS script].  &lt;br /&gt;
&lt;br /&gt;
== Button with a label ==&lt;br /&gt;
&lt;br /&gt;
# Add a &amp;#039;&amp;#039;&amp;#039;Label&amp;#039;&amp;#039;&amp;#039; component and set the text to the value you want.&lt;br /&gt;
# Create an action for the button in two ways:&lt;br /&gt;
#* Fill in the &amp;#039;&amp;#039;&amp;#039;Roll&amp;#039;&amp;#039;&amp;#039; field with a dice roll and check the &amp;#039;&amp;#039;&amp;#039;Clickable&amp;#039;&amp;#039;&amp;#039; option.&lt;br /&gt;
#* Add the class &amp;#039;&amp;#039;&amp;#039;clickable&amp;#039;&amp;#039;&amp;#039; and connect the button to a JS script.  &lt;br /&gt;
&lt;br /&gt;
== Complex button with a container ==&lt;br /&gt;
Sometimes, you may want to create more advanced buttons by overlaying multiple elements (icons, labels, etc.).&lt;br /&gt;
&lt;br /&gt;
# Place a &amp;#039;&amp;#039;&amp;#039;Container&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
# Add the elements you want to overlay inside this container.&lt;br /&gt;
# Add the &amp;#039;&amp;#039;&amp;#039;position-absolute&amp;#039;&amp;#039;&amp;#039; class to each of the components inside the container so that they overlap.&lt;br /&gt;
# Use m and p] classes to adjust positioning.&lt;br /&gt;
# Adjust opacity, size, and color to differentiate the elements.&lt;br /&gt;
# Finally, add the &amp;#039;&amp;#039;&amp;#039;clickable&amp;#039;&amp;#039;&amp;#039; class to the parent container so that the whole button reacts on hover.&lt;br /&gt;
# Assign an &amp;#039;&amp;#039;&amp;#039;id&amp;#039;&amp;#039;&amp;#039; to the container (e.g., &amp;#039;&amp;#039;button_action&amp;#039;&amp;#039;) so you can connect it to your script.&lt;br /&gt;
&lt;br /&gt;
== Connect the button to a script ==&lt;br /&gt;
To link a button to a scripted action:&lt;br /&gt;
&lt;br /&gt;
# Define a clear &amp;#039;&amp;#039;&amp;#039;id&amp;#039;&amp;#039;&amp;#039; for your button (e.g., &amp;#039;&amp;#039;button_action&amp;#039;&amp;#039;, &amp;#039;&amp;#039;button_roll&amp;#039;&amp;#039;, &amp;#039;&amp;#039;button_hide&amp;#039;&amp;#039;...).&lt;br /&gt;
# Create an initialization function to connect the button to an action.&lt;br /&gt;
&lt;br /&gt;
 init = function(sheet) {&lt;br /&gt;
     if (sheet.id() === &amp;quot;main&amp;quot;) {&lt;br /&gt;
         initMain(sheet);&lt;br /&gt;
     }&lt;br /&gt;
 };&lt;br /&gt;
 const initMain = function(sheet) {&lt;br /&gt;
     // Main initialization&lt;br /&gt;
     initButton(sheet);&lt;br /&gt;
 };&lt;br /&gt;
 const initButton = function(sheet){&lt;br /&gt;
     log(&amp;quot;START INIT BUTTON&amp;quot;);&lt;br /&gt;
     // Define the button action when clicked&lt;br /&gt;
     const buttonAction = function () {&lt;br /&gt;
         // Add instructions to execute here&lt;br /&gt;
     };&lt;br /&gt;
     // Get the button component using its ID&lt;br /&gt;
     let button = sheet.get(&amp;quot;button_action&amp;quot;);&lt;br /&gt;
     // Connect the &amp;quot;click&amp;quot; action to the buttonAction function&lt;br /&gt;
     button.on(&amp;quot;click&amp;quot;, buttonAction);&lt;br /&gt;
     log(&amp;quot;END INIT BUTTON&amp;quot;);&lt;br /&gt;
 };&lt;br /&gt;
&lt;br /&gt;
== Using buttons ==&lt;br /&gt;
You can find tutorials that use buttons here:&lt;br /&gt;
&lt;br /&gt;
# Roll a dice [TODO]&lt;br /&gt;
# Hide and show elements [TODO]&lt;br /&gt;
# Send information to the chat [TODO]&lt;br /&gt;
# Move a view inside a repeater [TODO]&lt;/div&gt;</summary>
		<author><name>Neo-Teyrall</name></author>
	</entry>
</feed>