Sha256: f4cfab92d4df5b9eae035eb84889b71d5e3b469a242ac4737d7aedeeec00b7b1
Contents?: true
Size: 528 Bytes
Versions: 1
Compression:
Stored size: 528 Bytes
Contents
# frozen_string_literal: true require 'erb' require 'action_table/view' module ActionTable module Helper def action_table( records, fields, styles: %i[bordered striped hover], link: :name, paginate: false, actions: [] ) action_table = View.new( cols: fields, records: records, paginate: paginate, link: link, actions: actions, styles: styles, ) render('action_table/table', table: action_table) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
action_table-0.1.0 | lib/action_table/helper.rb |