Dynamic editable energy consumption / green house gaz emition for french real estate listings rendered in css
Needs jquery (selectors), jquery-ui (dragable), underscore (template)
Include dpe-widget.js and dpe-widget.css in your web project.
The wigdet is invoked as a jquery plugin on a DOM element with the following parameters :
- measureType : 'ce' for an energy consumption diagram, 'ges' for a greenhouse gaz emition diagram
- propertyType : free text, should be 'logement' or 'bâtiment'
- initialValue : set the initial value for the energy consumption or the greenhouse gaz emition
- options may contain :
- boundInputId : give an input element id to bound the value of the widget to this element, it will be refreshed as the widget is modified
- inputName : if you want to use a custom name for the floating input of the widget
- readOnly : set to true to have a read-only widget
See example.html for usage