+(function () {
"use strict";
var ResourceTable = function (selector) {
$.fn.Table.call(this, selector);
this.columns = [
{
name: "displayName",
title: "작업자 명",
data: "displayName",
className: "dt-body-left",
visible: true,
width:"40%",
render: function (data, type, row, meta) {
if (type === "display") {
if (row["serverType"] === "클라우드") {
return ``;
} else if (row["serverType"] === "온프레미스") {
return ``;
} else {
return '";
}
}
return data;
}
},
{
name: "emailAddress",
title: "작업자 메일",
data: "emailAddress",
className: "dt-body-center",
visible: true,
width: "40%",
render: function (data, type, row, meta) {
if (type === "display") {
return '";
}
return data;
}
},
{
name: "serverType",
title: "서버타입",
data: "serverType",
className: "dt-body-center",
visible: false,
width: "20%",
render: function (data, type, row, meta) {
if (type === "display") {
return '";
}
return data;
}
}
];
};
ResourceTable.prototype = Object.create($.fn.Table.prototype);
ResourceTable.prototype.constructor = ResourceTable;
$.fn.ResourceTable = ResourceTable;
})(jQuery);