55 lines
1.0 KiB
Plaintext
55 lines
1.0 KiB
Plaintext
note
|
|
description: "Summary description for {REPEATER_PAGE}."
|
|
author: ""
|
|
date: "$Date$"
|
|
revision: "$Revision$"
|
|
|
|
class
|
|
REPEATER_PAGE
|
|
|
|
inherit
|
|
|
|
BASE_PAGE
|
|
redefine
|
|
initialize_controls
|
|
end
|
|
|
|
create
|
|
make
|
|
|
|
feature
|
|
|
|
initialize_controls
|
|
do
|
|
Precursor
|
|
control.add_control (create {WSF_BASIC_CONTROL}.make_with_body ("h1", "", " Repeater Demo"))
|
|
create datasource.make_news
|
|
create search_query.make (create {GOOGLE_AUTOCOMPLETION}.make)
|
|
search_query.add_class ("form-control")
|
|
search_query.set_change_event (agent change_query)
|
|
control.add_control (search_query)
|
|
control.add_control (create {WSF_BASIC_CONTROL}.make_with_body ("h2", "", "Results"))
|
|
create repeater.make (datasource)
|
|
control.add_control (repeater)
|
|
navbar.set_active (3)
|
|
end
|
|
|
|
change_query
|
|
do
|
|
datasource.set_query (search_query.value)
|
|
datasource.set_page (1)
|
|
datasource.update
|
|
end
|
|
|
|
process
|
|
do
|
|
end
|
|
|
|
repeater: GOOGLE_NEWS_REPEATER
|
|
|
|
search_query: WSF_AUTOCOMPLETE_CONTROL
|
|
|
|
datasource: GOOGLE_NEWS_DATASOURCE
|
|
|
|
end
|