     else
       @DATAVIEW.html('<p class="text-muted text-center">Multiple items selected</p>')
 
+    $('.add_property').on 'click', @clickNewProperty
+
   # display highlight on selected items
   drawSelection : () =>
     d3.selectAll(@selected_nodes)


  # display provided data, or whatever is currently selected
  displayData : (data) =>
    if data
      @DATAVIEW.html(@_propertyForm(data.properties))
    else if @selected_nodes.length + @selected_edges.length == 0


  getEdges: () =>
    (d.properties for d in @link_data)

  #add a new property to the form
  clickNewProperty: () =>
    str = """
      <div class="form-group">
        <div class="col-sm-4">
          <input class="form-control input-sm">
        </div>
        <div class="col-sm-8">
          <input class="form-control input-sm">
        </div>
      </div>
    """
    @DATAVIEW.find('.properties').append(str)


# GRAPHEDIT PLUGIN DEFINITION
