mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
added MultiSelectTemplate
This commit is contained in:
parent
549aa8eb8b
commit
4b29c29c2b
1 changed files with 34 additions and 0 deletions
|
|
@ -190,6 +190,39 @@ end
|
|||
|
||||
-- ##############################################
|
||||
|
||||
--
|
||||
-- MultiSelect template
|
||||
--
|
||||
|
||||
local MultiSelectTemplate = {}
|
||||
|
||||
function MultiSelectTemplate:new()
|
||||
|
||||
local object =Template:new("multi_select")
|
||||
setmetatable(object, self)
|
||||
self.__index = self
|
||||
|
||||
return object
|
||||
end
|
||||
|
||||
function MultiSelectTemplate:parseConfig(script, conf)
|
||||
return http_lint.validateListItems(script, conf)
|
||||
end
|
||||
|
||||
function MultiSelectTemplate:describeConfig(script, hooks_conf)
|
||||
|
||||
if (not hooks_conf.all) then
|
||||
return '' -- disabled, nothing to show
|
||||
end
|
||||
|
||||
-- TODO: improve the summary message
|
||||
local msg = 'Summary message for the table'
|
||||
|
||||
return (msg)
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
--
|
||||
-- Long lived template
|
||||
--
|
||||
|
|
@ -240,4 +273,5 @@ return {
|
|||
items_list = ItemsList:new(),
|
||||
elephant_flows = ElephantFlowsTemplate:new(),
|
||||
long_lived = LongLivedTemplate:new(),
|
||||
multi_select = MultiSelectTemplate:new()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue