SigServer:SignatureXML: Difference between revisions

Jump to navigation Jump to search
Line 19: Line 19:


=== Override default value ===
=== Override default value ===
'''NOTE: Only text element supported for now.'''
To override default element values the <defaults> tag is used. Inside the <defaults> tag elements are defined as usual.
 
To override an element's default value the <default> tag is used. It has three attributes, element, name and value.


'''Example'''
'''Example'''
  <signature>
  <signature>
<variables>
    <defaults>
<default element="text" name="face" value="courier" />
        <text color="#ff0000" />
</variables>
        <shape type="rectangle" color="#0000ff" />
    </defaults>
  </signature>
  </signature>


The example sets the default attribute ''face'' of the element ''text'' to ''courier''.
This sets the texts' default color to red and the rectangles' to blue.


== Layout ==
== Layout ==
256

edits

Navigation menu

MediaWiki spam blocked by CleanTalk.
MediaWiki spam blocked by CleanTalk.