#= require ./behavior

class window.PrintButton extends window.Behavior

  init: ->
    @idDivToPrint = $(@data('id-div-to-print'))

    @$dom.click =>
      @idDivToPrint.printThis
        canvas: true,
        importStyle: true

  getDivToPrint: ->
    @data('id-div-to-print') 