Added slider demo
This commit is contained in:
@@ -145,7 +145,7 @@ feature -- Implementation
|
||||
end
|
||||
end
|
||||
|
||||
feature -- EVENT HANDLING
|
||||
feature -- Event handling
|
||||
|
||||
handle_callback (cname: STRING; event: STRING; event_parameter: detachable STRING)
|
||||
-- Forward callback to control
|
||||
@@ -153,7 +153,7 @@ feature -- EVENT HANDLING
|
||||
control.handle_callback (cname, event, event_parameter)
|
||||
end
|
||||
|
||||
feature {WSF_PAGE_CONTROL, WSF_CONTROL} -- STATE MANAGEMENT
|
||||
feature {WSF_PAGE_CONTROL, WSF_CONTROL} -- State management
|
||||
|
||||
state: JSON_OBJECT
|
||||
do
|
||||
|
||||
@@ -63,7 +63,7 @@ feature -- Change
|
||||
add_image_with_caption (src, alt: STRING; caption: detachable WSF_STATELESS_CONTROL)
|
||||
-- Add a new image to the slider, with specified url, alternative text and caption element
|
||||
local
|
||||
item: WSF_MULTI_CONTROL
|
||||
item: WSF_STATELESS_MULTI_CONTROL
|
||||
do
|
||||
list.add_control (create {WSF_BASIC_CONTROL}.make_with_body ("li", "data-target=%"#" + control_name + "%" data-slide-to=%"" + list.controls.count.out + "%"", ""));
|
||||
create item.make_multi_control
|
||||
@@ -77,17 +77,17 @@ feature -- Change
|
||||
add_image (src, alt: STRING)
|
||||
-- Add a new image to the slider, with specified url and alternative text
|
||||
local
|
||||
item: WSF_MULTI_CONTROL[WSF_STATELESS_CONTROL]
|
||||
item: WSF_MULTI_CONTROL [WSF_STATELESS_CONTROL]
|
||||
do
|
||||
add_image_with_caption (src, alt, Void)
|
||||
end
|
||||
|
||||
feature -- Properties
|
||||
|
||||
list: WSF_MULTI_CONTROL[WSF_STATELESS_CONTROL]
|
||||
list: WSF_STATELESS_MULTI_CONTROL
|
||||
-- List of slider links
|
||||
|
||||
slide_wrapper: WSF_MULTI_CONTROL[WSF_STATELESS_CONTROL]
|
||||
slide_wrapper: WSF_STATELESS_MULTI_CONTROL
|
||||
-- List of the single image slides
|
||||
|
||||
end
|
||||
@@ -16,12 +16,13 @@
|
||||
<library name="pcre" location="$ISE_EIFFEL\unstable\library\text\regexp\pcre\pcre-safe.ecf"/>
|
||||
<library name="uri_template" location="..\..\text\parser\uri_template\uri_template-safe.ecf"/>
|
||||
<library name="wsf" location="..\wsf\wsf-safe.ecf"/>
|
||||
<cluster name="webcontrol" location=".\webcontrol\"/>
|
||||
<cluster name="validator" location=".\validator\"/>
|
||||
<cluster name="input" location=".\input\"/>
|
||||
<cluster name="grid" location=".\grid\"/>
|
||||
<cluster name="autocompletion" location=".\autocompletion\"/>
|
||||
<cluster name="grid" location=".\grid\"/>
|
||||
<cluster name="image_slider" location="\home\severin\Documents\EWF\EWF\library\server\wsf_js_widget\"/>
|
||||
<cluster name="input" location=".\input\"/>
|
||||
<cluster name="navbar" location=".\navbar\"/>
|
||||
<cluster name="progressbar" location=".\progressbar\"/>
|
||||
<cluster name="validator" location=".\validator\"/>
|
||||
<cluster name="webcontrol" location=".\webcontrol\"/>
|
||||
</target>
|
||||
</system>
|
||||
|
||||
Reference in New Issue
Block a user