Sha256: 504a60536c51df3abf0f5debd3cd15a0635353edca70c8ea034c9d2c1f52d12f
Contents?: true
Size: 556 Bytes
Versions: 2
Compression:
Stored size: 556 Bytes
Contents
# frozen_string_literal: true module Wallaby module Resources module Index # Html cell class StringHtml < Cell # @return [String] def render if value.nil? null else max = metadata[:max] || default_metadata.max self.value = value.to_s if value.length > max concat content_tag(:span, value.truncate(max)) itooltip value else value end end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wallaby-6.0.2 | app/views/wallaby/resources/index/string_html.rb |
wallaby-6.0.1 | app/views/wallaby/resources/index/string_html.rb |