Style demo pages

This commit is contained in:
YNH Webdev
2013-09-14 19:39:08 +02:00
parent cfe452543a
commit 6230d643c8
3 changed files with 46 additions and 0 deletions

View File

@@ -21,11 +21,14 @@ feature
container: WSF_MULTI_CONTROL [WSF_STATELESS_CONTROL]
do
create container.make_multi_control ("container")
container.add_class ("container")
container.add_control (create {WSF_STATELESS_HTML_CONTROL}.make_html("h1","Grid Demo"))
create datasource.make_news
create search_query.make_autocomplete ("query", create {GOOGLE_AUTOCOMPLETION}.make)
search_query.add_class ("form-control")
search_query.set_change_event (agent change_query)
container.add_control (search_query)
container.add_control (create {WSF_STATELESS_HTML_CONTROL}.make_html("h2","Results"))
create grid.make_grid ("mygrid", <<create {WSF_GRID_COLUMN}.make_column ("Title", "title"), create {WSF_GRID_COLUMN}.make_column ("Content", "content"), create {WSF_GRID_IMAGE_COLUMN}.make_image_column ("Image", "image")>>, datasource)
container.add_control (grid)
control := container

View File

@@ -20,11 +20,14 @@ feature
container: WSF_MULTI_CONTROL [WSF_STATELESS_CONTROL]
do
create container.make_multi_control ("container")
container.add_class ("container")
container.add_control (create {WSF_STATELESS_HTML_CONTROL}.make_html("h1","Repeater Demo"))
create datasource.make_news
create search_query.make_autocomplete ("query", create {GOOGLE_AUTOCOMPLETION}.make)
search_query.add_class ("form-control")
search_query.set_change_event (agent change_query)
container.add_control (search_query)
container.add_control (create {WSF_STATELESS_HTML_CONTROL}.make_html("h2","Results"))
create repeater.make_repeater ("myrepeater", datasource)
container.add_control (repeater)
control := container