Skip to content

Instantly share code, notes, and snippets.

@jarib
Created October 30, 2009 18:05
Show Gist options
  • Save jarib/222592 to your computer and use it in GitHub Desktop.
Save jarib/222592 to your computer and use it in GitHub Desktop.
class Radio < Element
identifier :tag_name => 'input', :type => 'radio'
method_name :radio
collection_method_name :radios
# core
attributes :class, :id, :style, :title,
# i18n
:dir, :lang,
# events
:onclick, :ondblclick, :onmousedown, :onmouseup, :onmouseover,
:onmousemove, :onmouseout, :onkeypress, :onkeydown, :onkeyup,
:onselect, :onchange,
# others
:type, :name, :value, :checked, :disabled, :readonly, :size, :maxlength,
:src, :alt, :usemap, :ismap, :tabindex, :accesskey, :onfocus, :onblur,
:accept, :align
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment