Vai al contenuto principale

BIN laz6F Documentation

  • Author:

  • Version: 4

  • Description: Percentage display with xs:float, fractionDigits facet and nc.minFractionDigits extra attribute - readonly - lG5kx XF0bE

  • Created: 2020-12-26

  • Modified: 2020-12-26

  • Source:

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

    Printers Embed Responsive

    <complexType name='Form' description='Percentage display with xs:float, fractionDigits facet and nc.minFractionDigits extra attribute - readonly - bin:lG5kx bin:XF0bE' extra:form.ccontrol='print'>
        <field name='FloatPercentFormat' type='xs:float' default='0.23232425' extra:nc.format='percent' extra:form.explanation='In this input one can insert more than two decimals, they will be displayed as two, the persisted value may have the inserted decimals, possible more than two'/>
        <field name='FloatPercentFormatFractDig4' type='xs:float' default='0.232' extra:nc.format='percent' extra:form.explanation='In this input one cannot insert more than two decimals, if more are inserted a validation error happens, after error display the input contains the correct number of decimals for next submit'>
            <facet name='fractionDigits' value='4'/>
        </field>
        <field name='FloatPercentFormatFractDig4Min2' type='xs:float' default='0.23' extra:nc.format='percent' extra:nc.minFractionDigits='2' extra:form.explanation='In this input one cannot insert more than two decimals like the input before but here the formatting is always with two decimals'>
            <facet name='fractionDigits' value='4'/>
        </field>
    </complexType>