<prefix>

<prefix> 
The <prefix> tag defines an affix content that can be added in the front of a primary text content. 
Note
  • It is similar to the text tag and can be defined within a <text> tag only.
  • <prefix> is applicable only when <text type='Form Data'>
Parent tag : <text>
Child tag   : -- 
Attributes
valueThe value attribute specifies the content to be prefixed to a primary text.
 
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
sizeThe size attribute specifies a font size for the prefixed text.
 
boldThe bold attribute adds a bold style to the prefixed text.
 
italicThe italic attribute adds an italic style to the prefixed text.
 
colorThe color attribute specifies a font color for the prefixed text.
 
value
 
Possible Values
  • Any String

Example

Syntax<text type='Form Data' value='salesapp.northregion.totalsales.sum'>
<prefix value='$'/>
</text>
Output

 

Note:

  • value attribute acts as source attribute. i.e: All the attributes listed below viz: size, bold, italic and color are applicable only when a value is specified. 

 

size
Possible Values
  • A number from 1 - 9 that defines the size of the prefix text. 

Example

Syntax

<text type='Form Data' value='salesapp.northregion.totaltaxes.sum' size='8'>

          <prefix value='Deductibles: $' size='4'/>

</text>

Output 

Note:

  • size attribute is optional.
  • If no size is specifies, it is same as the size of the primary text content.
bold
Possible Values
  • true
  • false

Example

Syntax

<text type='Form Data' value='salesapp.northregion.totaltaxes.sum' size='8'>

          <prefix value='Warehouse (North):' bold='false'/>

Output 

Note:

  • bold attribute is optional.
  • If it is not specified, the prefix text acquires the value of the bold attribute set for the primary text content.
italic
Possible Values
  • true
  • false

Example

Syntax

<text type='Form Data' value='salesapp.northregion.totaltaxes.sum' size='8'>

          <prefix value='Overdue $' italic='true'/>

</text>

Output 

Note:

  • italic attribute is optional.
  • If it is not specified, the prefix text acquires the value of the italic attribute set for the primary text content.

 

color
Possible Values
  • A hexadecimal color value. You can refer this page for hexadecimal color codes.

Example

Syntax

<text type='Form Data' value='salesapp.northregion.totaltaxes.sum' size='8'>

          <prefix value='Open Tickets: ' color='#AA002D'/>

</text>

Output 

Note:

  • color attribute is optional.
  • If it is not specified, the prefix text acquires the value of the color attribute set for the primary text content.

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohocreator.com