Commit b27194261d1733f255bfa0478443b7ce63cfda80

Authored by David RENÉ
1 parent bc3738d4

[+] add wrap_lines and read_only CoreAttrributes for textarea

Showing 1 changed file with 4 additions and 0 deletions   Show diff stats
web/making_a_web_site.anubis
@@ -1779,6 +1779,10 @@ public define HTML_Off_Form tr(HTML_Off_Form content) @@ -1779,6 +1779,10 @@ public define HTML_Off_Form tr(HTML_Off_Form content)
1779 1779
1780 1780
1781 // <textarea> 1781 // <textarea>
  1782 + // CoreAttrs for textarea
  1783 +public define CoreAttrs wrap_lines = attr("wrap", "hard").
  1784 +public define CoreAttrs read_only = bool_attr(true, "readonly").
  1785 +
1782 public define HTML_Off_Form textarea(List(CoreAttrs) attrs, List(HTML_Off_Form) content) = html_tag("textarea", attrs, content). 1786 public define HTML_Off_Form textarea(List(CoreAttrs) attrs, List(HTML_Off_Form) content) = html_tag("textarea", attrs, content).
1783 public define HTML_Off_Form textarea(List(CoreAttrs) attrs, Int cols, Int rows, List(HTML_Off_Form) content) 1787 public define HTML_Off_Form textarea(List(CoreAttrs) attrs, Int cols, Int rows, List(HTML_Off_Form) content)
1784 = html_tag("textarea", [attr("cols",to_String(cols)), attr("rows",to_String(rows)) . attrs], content). 1788 = html_tag("textarea", [attr("cols",to_String(cols)), attr("rows",to_String(rows)) . attrs], content).