mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
web: added __gpio-label class by user's request
This commit is contained in:
@@ -134,7 +134,8 @@ export function Gpio(__recorder) {
|
|||||||
|
|
||||||
var __createItem = function(item) {
|
var __createItem = function(item) {
|
||||||
if (item.type === "label") {
|
if (item.type === "label") {
|
||||||
return item.text;
|
// User may want to use HTML in the text so we don't perform escaping here.
|
||||||
|
return `<span class="__gpio-label">${item.text}</span>`;
|
||||||
|
|
||||||
} else if (item.type === "input") {
|
} else if (item.type === "input") {
|
||||||
let e_ch_class = tools.escape(`__gpio-led-${item.channel}`);
|
let e_ch_class = tools.escape(`__gpio-led-${item.channel}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user