Sha256: 67ab7e80949dfc882b5cf69751f3df0dca330f66eb5282a62acc8a088602ae88
Contents?: true
Size: 528 Bytes
Versions: 11
Compression:
Stored size: 528 Bytes
Contents
# frozen_string_literal: true new({ method: :width, renderer: :html, type: :int }) do |params, _user_proc| unit = @unit[:width] || :px if params.is_a? Numeric js[:style][:width] = "#{params}#{unit}" end new({ method: :height, renderer: :html, type: :int }) do |params, _user_proc| unit = @unit[:height] || :px if params.is_a? Numeric js[:style][:height] = "#{params}#{unit}" end new({ method: :size, type: :int, renderer: :html, specific: :text }) do |value, _user_proc| html.style('fontSize', "#{value}px") end
Version data entries
11 entries across 11 versions & 1 rubygems