Custom appearance

Release 2.0 - ...

The common appearance attribute allows for custom values, as long they live in custom namespaces:

XML CopyCode image Copy Code
<xf:textarea ref="data" appearance="xfr:mytextareacontrol()">
    <xf:label>Data: </xf:label>
    <xf:hint>Enter your data.</xf:hint>
</xf:textarea>

The given namespace prefix must of course be declared:

XML CopyCode image Copy Code
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" 
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ev="http://www.w3.org/2001/xml-events"
    xmlns:xfr="http://smartsite.nl/namespaces/xforms-sxml/1.0"
    >