From 811d087d7482e739ac26bbd5119ec8a7a67c3b18 Mon Sep 17 00:00:00 2001 From: YNH Webdev Date: Thu, 5 Sep 2013 14:55:52 +0200 Subject: [PATCH] Generate tag --- library/server/wsf_html/webcontrol/wsf_control.e | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/library/server/wsf_html/webcontrol/wsf_control.e b/library/server/wsf_html/webcontrol/wsf_control.e index 0ae82d73..4411407d 100644 --- a/library/server/wsf_html/webcontrol/wsf_control.e +++ b/library/server/wsf_html/webcontrol/wsf_control.e @@ -71,7 +71,16 @@ feature --EVENT HANDLING end feature - + render_tag(body,attributes:STRING):STRING + do + Result:="<"+tag_name+" data-name=%"" + control_name + "%" data-type=%""+generator+"%" "+attributes + if not body.is_empty then + Result:= Result + " />" + else + Result:= Result + " >" + body + "" + end + end + render: STRING -- Return html representaion of control deferred