Class: Avo::Resources::Controls::LinkTo
Instance Method Summary
collapse
Methods inherited from BaseControl
#action?, #actions_list?, #back_button?, #color, #delete_button?, #detach_button?, #edit_button?, #icon, #label, #link_to?, #style, #title
Constructor Details
#initialize(**args) ⇒ LinkTo
Returns a new instance of LinkTo.
5
6
7
|
# File 'lib/avo/resources/controls/link_to.rb', line 5
def initialize(**args)
super(**args)
end
|
Instance Method Details
#class ⇒ Object
21
22
23
|
# File 'lib/avo/resources/controls/link_to.rb', line 21
def class
@args[:class] || nil
end
|
#data ⇒ Object
17
18
19
|
# File 'lib/avo/resources/controls/link_to.rb', line 17
def data
@args[:data] || {}
end
|
#path ⇒ Object
9
10
11
|
# File 'lib/avo/resources/controls/link_to.rb', line 9
def path
@args[:path]
end
|
#target ⇒ Object
13
14
15
|
# File 'lib/avo/resources/controls/link_to.rb', line 13
def target
@args[:target] || nil
end
|