Added slider demo
This commit is contained in:
@@ -22,17 +22,16 @@ feature
|
||||
initialize_controls
|
||||
do
|
||||
Precursor
|
||||
container.add_control (create {WSF_BASIC_CONTROL}.make_with_body("h1","","Grid Demo"))
|
||||
control.add_control (create {WSF_BASIC_CONTROL}.make_with_body("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_BASIC_CONTROL}.make_with_body("h2","","Results"))
|
||||
control.add_control (search_query)
|
||||
control.add_control (create {WSF_BASIC_CONTROL}.make_with_body("h2","","Results"))
|
||||
create grid.make_grid ("mygrid", <<create {WSF_GRID_COLUMN}.make ("Title", "title"),
|
||||
create {WSF_GRID_COLUMN}.make ("Content", "content")>>, datasource)
|
||||
container.add_control (grid)
|
||||
control := container
|
||||
control.add_control (grid)
|
||||
end
|
||||
|
||||
change_query
|
||||
|
||||
Reference in New Issue
Block a user