Sha256: 89425443379bb2d0a42100b9971969383618a0f619de75cb8271b360f64689a5
Contents?: true
Size: 537 Bytes
Versions: 5
Compression:
Stored size: 537 Bytes
Contents
module Treemap def treemap( data_url, element='.treemap' ) TreemapGenerator.new.generate( element, data_url ) treemap_inputs = radio_input( 'size', true ) treemap_inputs << radio_input( 'count', false ) treemap_form = content_tag( :form, treemap_inputs ) content_tag( :div, treemap_form, class: element[1..-1] ) end def radio_input value, checked data = radio_button_tag( :mode, value, checked ) data << value content_tag( :label, data, class: 'radio inline') end end
Version data entries
5 entries across 5 versions & 2 rubygems