Modèle:FiltreÉlément : Différence entre versions

[version vérifiée][version vérifiée]
Ligne 1 : Ligne 1 :
 
{{#switch: {{{Élément|}}}
 
{{#switch: {{{Élément|}}}
 
|button=
 
|button=
<div data-element="button" data-type="button" data-aria-controls="{{{id|}}}" data-aria-haspopup="true" data-aria-expanded="false" data-style="padding: 10px 20px; background-color: #fff; border: 1px solid #ccc; border-radius: 5px; font-size: 16px; cursor: pointer; user-select: none; display: inline-block;">{{{Nom|}}}</div>
+
{{Button|text={{{Nom|}}}|type=button|aria-controls={{{id|}}}|aria-haspopup=true|aria-expanded=false|style=padding: 10px 20px; background-color: #fff; border: 1px solid #ccc; border-radius: 5px; font-size: 16px; cursor: pointer; user-select: none; display: inline-block;}}
 
|number=
 
|number=
 
<div data-element="label-input" data-id="{{{id|}}}" data-type="number" data-min="{{{min|0}}}" data-max="{{{max|100}}}" data-value="{{{value|0}}}" data-style="display: inline-block; vertical-align: middle; margin-right: 10px; width: 40px; height: 20px; border: 1px solid #ccc; border-radius: 3px; appearance: none;">{{{Nom|}}}</div>
 
<div data-element="label-input" data-id="{{{id|}}}" data-type="number" data-min="{{{min|0}}}" data-max="{{{max|100}}}" data-value="{{{value|0}}}" data-style="display: inline-block; vertical-align: middle; margin-right: 10px; width: 40px; height: 20px; border: 1px solid #ccc; border-radius: 3px; appearance: none;">{{{Nom|}}}</div>

Version du 16 août 2023 à 13:14