Sha256: ab8b8e25184a482d2aa3477c9adfd2eaec6531fb592ee4ecbcc921ac7ee8a77b
Contents?: true
Size: 384 Bytes
Versions: 1
Compression:
Stored size: 384 Bytes
Contents
# frozen_string_literal: true module Tramway::AdditionalButtonsBuilder def build_button(button) options = button[:options] || {} style = 'margin-right: 8px' concat(link_to(button[:url], method: button[:method], class: "btn btn-#{button[:color]} btn-xs", style:, **options) do button[:inner]&.call end) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tramway-0.1.2 | app/helpers/tramway/additional_buttons_builder.rb |