Added comments to autocompletion, input, navbar, progressbar, validator, webcontrol. Some more little changes.
This commit is contained in:
@@ -7,12 +7,14 @@ note
|
||||
deferred class
|
||||
WSF_AUTOCOMPLETION
|
||||
|
||||
feature
|
||||
feature -- Access
|
||||
|
||||
autocompletion (input: STRING): JSON_ARRAY
|
||||
-- JSON array of suggestions that fit the specific input
|
||||
deferred
|
||||
end
|
||||
|
||||
template: detachable STRING
|
||||
-- Customizable template
|
||||
|
||||
end
|
||||
|
||||
@@ -14,9 +14,10 @@ inherit
|
||||
create
|
||||
make
|
||||
|
||||
feature {NONE}
|
||||
feature {NONE} -- Initialization
|
||||
|
||||
make (l: ITERABLE [STRING])
|
||||
-- Initialize
|
||||
do
|
||||
list := l
|
||||
end
|
||||
@@ -24,6 +25,7 @@ feature {NONE}
|
||||
feature -- Implementation
|
||||
|
||||
autocompletion (input: STRING): JSON_ARRAY
|
||||
-- Implementation
|
||||
local
|
||||
o: JSON_OBJECT
|
||||
do
|
||||
@@ -33,14 +35,13 @@ feature -- Implementation
|
||||
loop
|
||||
if c.item.as_lower.has_substring (input.as_lower) then
|
||||
create o.make
|
||||
o.put (create {JSON_STRING}.make_json(c.item), "value")
|
||||
o.put (create {JSON_STRING}.make_json (c.item), "value")
|
||||
Result.add (o)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
feature
|
||||
|
||||
list: ITERABLE [STRING]
|
||||
-- List containing suggestions
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user