This shows you the differences between two versions of the page.
en:public:developer:template_system:tags:htmlinput:tbutton [2014/06/20 15:21] admin [Example] |
en:public:developer:template_system:tags:htmlinput:tbutton [2015/01/18 22:34] (current) svanderclock [Properties] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== <#Button.create> ===== | + | ===== <#TButton> ===== |
- | Create an HTML button from the given params | + | Tbutton is an object used to create html button |
- | ===== <#Button> ===== | + | ==== Properties ==== |
+ | |||
+ | ^ Name ^ Mandatory ^ Description ^ | ||
+ | | <html><span style="color:#008000">template</span></html> | Yes | The template that will be used to construct the button | | ||
+ | | <html><span style="color:#008000">href</span></html> | No | The href params of the link (<a **href=".."**>) | | ||
+ | | <html><span style="color:#008000">onclick</span></html> | No | The onclick params of the link (<a **onclick=".."**>) | | ||
+ | | <html><span style="color:#008000">caption</span></html> | No | The caption of the button (<a href="..">**caption**</a>) | | ||
+ | | <html><span style="color:#008000">title</span></html> | No | The Title of the link (<a **title=".."**>) | | ||
+ | | <html><span style="color:#008000">itemprop</span></html> | No | The itemprop value of the button (<a **itemprop=".."**>) | | ||
+ | | <html><span style="color:#008000">extra_params</span></html> | No | Extra params for the link (<a **extra_params**>) | | ||
+ | | <html><span style="color:#008000">extra_class</span></html> | No | Extra Class for the link (<a class="Btn_main_class **extra_class**">) | | ||
+ | | <html><span style="color:#008000">asInput</span></html> | No | Render the button as an **<input type="submit">** element | | ||
+ | | <html><span style="color:#008000">type</span></html> | No | Specifies the type of button (**button**, **reset**, **submit**) | | ||
+ | ===== Constructors ===== | ||
+ | |||
+ | ^ Name ^ Type ^ Description ^ | ||
+ | | [[en:public:developer:template_system:tags:htmlinput:tbutton:create]] | String | construct a Tbutton object | | ||
When the tag <#Button> is use without any path (like <#Button.caption> for exemple) | When the tag <#Button> is use without any path (like <#Button.caption> for exemple) | ||
then it's the Constructor of a TButton object that will be available via the var named Button. | then it's the Constructor of a TButton object that will be available via the var named Button. | ||
- | ==== Parameters ==== | ||
- | |||
- | ^ Name ^ Mandatory ^ Description ^ | ||
- | | <html><span style="color:#008000">template</span></html> | Yes | The template that will be used to construct the button. | | ||
- | | <html><span style="color:#008000">href</span></html> | No | The href params of the link (<a **href=".."**>). This parameter will be store in the variable **<#button_href>** | | ||
- | | <html><span style="color:#008000">onclick</span></html> | No | The onclick params of the link (<a **onclick=".."**>). This parameter will be store in the variable **<#button_onclick>** | | ||
- | | <html><span style="color:#008000">caption</span></html> | No | The caption of the button (<a href="..">**caption**</a>). This parameter will be store in the variable **<#button_caption>** | | ||
- | | <html><span style="color:#008000">title</span></html> | No | The Title of the link (<a **title=".."**>). This parameter will be store in the variable **<#button_title>** | | ||
- | | <html><span style="color:#008000">itemprop</span></html> | No | The itemprop value of the button (<a **itemprop=".."**>). This parameter will be store in the variable **<#button_itemprop>** | | ||
- | | <html><span style="color:#008000">extra_params</span></html> | No | Extra params for the link (<a **extra_params**>). This parameter will be store in the variable **<#button_extra_params>** | | ||
- | | <html><span style="color:#008000">extra_class</span></html> | No | Extra Class for the link (<a class="Btn_main_class **extra_class**">). This parameter will be store in the variable **<#button_extra_class>** | | ||
==== Example ==== | ==== Example ==== | ||
Line 48: | Line 53: | ||
<code html> | <code html> | ||
- | <a class="MyButtonClass" Href="MyPage.html"> | + | <a class="ak_btn_2 ak_btn_2_9">" href="MyPage.html"> |
- | <span class="l"></span> | + | <span> |
- | <span class="m">Go to my Page</span> | + | Go to my Page |
- | <span class="r"></span> | + | </span> |
</a> | </a> | ||
</code> | </code> | ||
- |