Skip to main content

BIN 6oAQI Documentation

  • Author:

  • Version: 14

  • Description: Example of [choice.css] that specifies an additional css class for the HTML container of the selected value of a choice control. Also [form.css] is used.

  • Created: 2014-09-03

  • Modified: 2014-09-03

  • Source:

     Edit Bin W3C Schema Json-Schema Java Bean Code Default Value as XML

    Printers Embed Responsive

    <complexType name='Form' description='Example of [choice.css] that specifies an additional css class for the HTML container of the selected value of a choice control. Also [form.css] is used.'>
    	<choice name='MyChoice' extra:choice.css='well' extra:form.css='badge'>
    			<field name='A'/>
    			<field name='B' type='Address'/> 
    	</choice>
    </complexType>
    
    <complexType name='Address'> 
      <field name='street' type='xs:string' />
      <field name='city' type='xs:string'  />
      <field name='zip' type='xs:int' extra:html5='false'   />
    </complexType>