bcolombani / dpe-widget

Dynamic editable energy consumption / green house gaz emition for french real estate listings rendered in css

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dpe-widget

Dynamic editable energy consumption / green house gaz emition for french real estate listings rendered in css

Dependencies

Needs jquery (selectors), jquery-ui (dragable), underscore (template)

Usage

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

About

Dynamic editable energy consumption / green house gaz emition for french real estate listings rendered in css

License:MIT License


Languages

Language:JavaScript 63.2%Language:CSS 29.1%Language:HTML 7.6%