mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Fix custom query columns formatters and alignment
This commit is contained in:
parent
e677012b8b
commit
559dec5b1e
2 changed files with 11 additions and 8 deletions
|
|
@ -1471,7 +1471,8 @@ local function build_datatable_column_def_number(name, i18n_label)
|
|||
data_field = name,
|
||||
title_i18n = i18n_label,
|
||||
sortable = true,
|
||||
class = { "no-wrap" },
|
||||
class = { "no-wrap", "text-center" },
|
||||
render_type = "number",
|
||||
}
|
||||
end
|
||||
|
||||
|
|
@ -1529,7 +1530,7 @@ local function build_datatable_column_def_asn(name, i18n_label)
|
|||
data_field = name,
|
||||
title_i18n = i18n_label,
|
||||
sortable = true,
|
||||
class = { "no-wrap" },
|
||||
class = { "no-wrap", "text-center" },
|
||||
}
|
||||
end
|
||||
|
||||
|
|
@ -1600,8 +1601,8 @@ local function build_datatable_column_def_packets(name, i18n_label)
|
|||
data_field = name,
|
||||
title_i18n = i18n_label,
|
||||
sortable = true,
|
||||
style = "text-align:right;",
|
||||
class = { "no-wrap" },
|
||||
class = { "no-wrap", "text-center" },
|
||||
render_type = "number",
|
||||
}
|
||||
end
|
||||
|
||||
|
|
@ -1613,7 +1614,8 @@ local function build_datatable_column_def_bytes(name, i18n_label)
|
|||
title_i18n = i18n_label,
|
||||
sortable = true,
|
||||
style = "text-align:right;",
|
||||
class = { "no-wrap" },
|
||||
class = { "no-wrap", "text-center" },
|
||||
render_type = "bytes",
|
||||
}
|
||||
end
|
||||
|
||||
|
|
@ -1648,7 +1650,7 @@ local function build_datatable_column_def_float(name, i18n_label)
|
|||
data_field = name,
|
||||
title_i18n = i18n_label,
|
||||
sortable = true,
|
||||
class = { "no-wrap" },
|
||||
class = { "no-wrap", "text-center" },
|
||||
}
|
||||
end
|
||||
|
||||
|
|
@ -1659,7 +1661,8 @@ local function build_datatable_column_def_msec(name, i18n_label)
|
|||
data_field = name,
|
||||
title_i18n = i18n_label,
|
||||
sortable = true,
|
||||
class = { "no-wrap" },
|
||||
class = { "no-wrap", "text-center" },
|
||||
render_type = "ms",
|
||||
}
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue