===== <#TButton> ===== Tbutton is an object used to create html button ==== Properties ==== ^ Name ^ Mandatory ^ Description ^ | template | Yes | The template that will be used to construct the button | | href | No | The href params of the link () | | onclick | No | The onclick params of the link () | | caption | No | The caption of the button (**caption**) | | title | No | The Title of the link () | | itemprop | No | The itemprop value of the button () | | extra_params | No | Extra params for the link () | | extra_class | No | Extra Class for the link () | | asInput | No | Render the button as an **** element | | type | 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) then it's the Constructor of a TButton object that will be available via the var named Button. ==== Example ==== We define the template of MyButton.html like this : "> <#button.extra_class><#endif>" href="<#button.href>" <#if condition="<#button.onclick checksum=1>"> onclick="<#button.onclick>"<#endif> <#if condition="<#button.title checksum=1>"> title="<#button.title xmlencode=1>"<#endif> <#if condition="<#button.itemprop checksum=1>"> itemprop="<#button.itemprop>"<#endif> <#if condition="<#button.extra_params checksum=1>"> <#button.extra_params><#endif>> <#button.caption xmlencode=1> if we call this function <#Button Template="MyButton.html" Href="MyPage.html" Caption="Go to my Page"> the output will be " href="MyPage.html"> Go to my Page