diff --git a/calexium_lib/web/CXM_making_a_web_site.anubis b/calexium_lib/web/CXM_making_a_web_site.anubis index e2b9ce3..cc11b15 100644 --- a/calexium_lib/web/CXM_making_a_web_site.anubis +++ b/calexium_lib/web/CXM_making_a_web_site.anubis @@ -918,6 +918,8 @@ public type Actioner_Target: public type Actioner_Aspect: link (List(Text_Option),String text, Maybe(String) name), // hypertext link push_button (List(CoreAttrs),String text), + button (String url_off, String url_on), // rollover button + button (String url_off, String url_on, Int32 w, Int32 h), // idem with size submit (List(CoreAttrs),String text), immediate_selector (WebArgName name, Int32 size, List((WebArgValue,String)) choices), immediate_selector (WebArgName name, Int32 size, List((WebArgValue,String)) choices, InitialValue selected). @@ -959,7 +961,12 @@ public define Actioner_Aspect ) = link([], i). - +public define Actioner_Aspect + button + ( + String url_img + ) = + button(url_img,url_img). Actioners are explained in details below. @@ -3090,6 +3097,8 @@ define Maybe(String) { link(_,_,_) then failure, push_button(opts,_) then extract_id(opts), + button(_,_) then failure, + button(_,_,_,_) then failure, submit(opts,_) then extract_id(opts), immediate_selector(_,_,_) then failure, immediate_selector(_,_,_,_) then failure, @@ -3138,6 +3147,32 @@ define Printable_tree [s,""] } ], + button(url_off,url_on) then + [ if action is + { + url(u) then ["", + "\"",url_off,"\"", + "" + ], + + button(url_off,url_on,w,h) then + [ if action is + { + url(u) then ["", + "\"",url_off,"\"", + "" + ], + submit(options, text) then [ if action is @@ -3192,6 +3227,19 @@ define Printable_tree { link(opt,text,name) then [text], push_button(opt, text) then [text], + button(url_off,url_on) then + [ + "\"",url_off,"\"", + ], + + button(url_off,url_on,w,h) then + [ + "\"",url_off,"\"", + ], submit(opt, text) then [text], immediate_selector(name,size,choices) then alert, immediate_selector(name,size,choices,selected) then alert, -- libgit2 0.21.4