mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Implement pool policy editor
This commit is contained in:
parent
685eb72767
commit
3a67f53b10
11 changed files with 854 additions and 2 deletions
|
|
@ -117,4 +117,18 @@ function ui_utils.render_table_picker(name, context, modals)
|
|||
})
|
||||
end
|
||||
|
||||
---Render a Tags Input box.
|
||||
--@param name The component unique name
|
||||
---@param tags A table containing the values
|
||||
---@return string
|
||||
function ui_utils.render_tag_input(name, tags)
|
||||
local options = {
|
||||
instance_name = name,
|
||||
json = json,
|
||||
tags = tags or {}, -- initial tags
|
||||
}
|
||||
|
||||
return template_utils.gen("pages/components/tag-input.template", options)
|
||||
end
|
||||
|
||||
return ui_utils
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue