Class: Frontyard::PageLinks
Instance Method Summary
collapse
#before_template, config, default_config, generate_css_class, #html_options, initialize_with, #namespace, #params, #render_model, #render_table, #view_template
Instance Method Details
12
13
14
15
16
17
18
|
# File 'app/components/frontyard/page_links.rb', line 12
def button(text, object, **options)
options = {
class: "page-button",
form: {class: "inline-button-form"}
}.merge(options)
button_to text, object, **options
end
|
20
21
22
23
24
25
|
# File 'app/components/frontyard/page_links.rb', line 20
def dangerous_button(text, object, options)
options = {
class: "page-button dangerous"
}.merge(options)
button(text, object, **options)
end
|
#page_link(text, url, **options) ⇒ Object
5
6
7
8
9
10
|
# File 'app/components/frontyard/page_links.rb', line 5
def page_link(text, url, **options)
options = {
class: "page-link"
}.merge(options)
link_to text, url, **options
end
|