add image buton
This commit is contained in:
parent
6144bb8a55
commit
cfd37b5374
@ -72,6 +72,8 @@ class MechanizeCr::Form
|
||||
buttons << FormContent::SubmitButton.new(html_node, @node)
|
||||
when"reset"
|
||||
buttons << FormContent::ResetButton.new(html_node, @node)
|
||||
when "image"
|
||||
buttons << FormContent::ImageButton.new(html_node, @node)
|
||||
when "text"
|
||||
fields << FormContent::Text.new(html_node)
|
||||
when "hidden"
|
||||
|
@ -7,3 +7,4 @@ class MechanizeCr::FormContent::Button < MechanizeCr::FormContent::Field
|
||||
end
|
||||
require "./reset_button"
|
||||
require "./submit_button"
|
||||
require "./image_button"
|
||||
|
2
src/mechanize/form/image_button.cr
Normal file
2
src/mechanize/form/image_button.cr
Normal file
@ -0,0 +1,2 @@
|
||||
class MechanizeCr::FormContent::ImageButton < MechanizeCr::FormContent::Button
|
||||
end
|
Loading…
Reference in New Issue
Block a user