Commit d0da75acd0f8ee3340480ef9528fa949c5d6f707
1 parent
78abf670
[+] add some CoreAttrs helper for colspan(value) and rowspan(value)
Showing
1 changed file
with
5 additions
and
8 deletions
Show diff stats
web/types/making_a_web_site.anubis
| ... | ... | @@ -439,15 +439,9 @@ public type HTML_Off_Form: |
| 439 | 439 | literal (String), |
| 440 | 440 | sequence (List(HTML_Off_Form) items), |
| 441 | 441 | text (List(CoreAttrs), String the_text), |
| 442 | -// preformated (List(Text_Option), String), | |
| 442 | + | |
| 443 | 443 | table (List(Table_Option), HTML_Header_Row(HTML_Off_Form), List(HTML_Row(HTML_Off_Form)), HTML_Footer_Row(HTML_Off_Form)), |
| 444 | - //center (HTML_Off_Form), | |
| 445 | -// mail_to (String email, HTML_Off_Form element), | |
| 446 | -// scroller (Int width, Int height, | |
| 447 | -// Int content_width, Int content_height, | |
| 448 | -// HTML_Off_Form content), | |
| 449 | - //fixed_size (HTML_Size width, HTML_Size height, HTML_Off_Form content), | |
| 450 | - //fixed_size_2 (HTML_Size width, HTML_Size height, String name_of_HTML_file), | |
| 444 | + | |
| 451 | 445 | actioner (Actioner_Connection, Actioner_Target, Actioner_Aspect, |
| 452 | 446 | WEB_Action_Name action_name, List((String,String)) extra_ops, |
| 453 | 447 | List(Actioner_Local_Action)), |
| ... | ... | @@ -577,6 +571,9 @@ public type CoreAttrs: |
| 577 | 571 | spellcheck(Bool) //Specifies whether the element represents an element whose contents are subject to spell checking and grammar checking. |
| 578 | 572 | . |
| 579 | 573 | |
| 574 | +public define CoreAttrs colspan(Int value)= attr("colspan", to_String(value)). | |
| 575 | +public define CoreAttrs rowspan(Int value)= attr("rowspan", to_String(value)). | |
| 576 | + | |
| 580 | 577 | public define CoreAttrs |
| 581 | 578 | boolean |
| 582 | 579 | ( | ... | ... |