OpenERP qweb Template Label notes

Source: Internet
Author: User

In OpenERP, the template is rendered to the browser through Qweb, and there are many tags in the template to customize the various requirements changes, where the definition of tags encountered during the learning process is recorded to facilitate query.

The label unification in the template starts with "T".

T-name used to indicate the name of the template

T-extend is used to indicate whether the template inherits from another template, followed by the name of the parent template, such as: t-extend= "Login"

T-jquery a jquery selector, followed by a selector definition, such as: t-jquery= ". Oe_logiin"

T-operation is usually followed by T-jquery, indicating the action that the selector executes after the element is found, with the value: Append (append), replace (replacement)

The t-if is used to indicate the condition that the element produces on the page, followed by an expression with a JavaScript, which returns TRUE or False

t-att-### is used to indicate the attribute value of an element, # # #是元素的属性名称, such as: t-att-value= "JavaScript expression"

T-foreach is used to indicate a circular call, followed by an array

T-as is used to obtain a single value in the loop, used with the T-foreach, followed by a variable name, you can use the variable value in the loop

T-esc for a text output

T-call is used to invoke another template, followed by the name of a template

T-set is used to set a variable, followed by the name of the variable, generally with the t-value use

T-value used to specify the value of a variable or element

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.