JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqwidgets/18.0.0/jqwidgets/jqx-all.js"></script>
<link rel="stylesheet" href="https://www.jqwidgets.com/jquery-widgets-demo/jqwidgets/styles/jqx.base.css">
<button onclick="updatedItem()">
Update Item
</button>
<div id="board">
</div>
CSS
.boardmeta td {
padding: 0px 10px 0px 0px;
}
#boardSelectBoardType { padding: 10px }
#boardControlConfig div { display: inline }
ul.boardMaster {
line-height: 1;
list-style: none;
margin-left: -40px;
margin-bottom: 0px !important;
}
.boardMasters ul, .boardMasters li {
line-height: 0.9;
list-style: none;
margin-left: -20px;
width: 20vw;
}
.boardNewButton {
width: 80px !important;
min-width: 80px !important;
}
.boardkeytd {
border-bottom: 1px dotted gray;
border-left: 1px dotted gray;
border-top: 0px none;
border-right: 0px none;
}
#boardCreatorInput { grid-area: input }
#boardCreatorList { grid-area: list }
#boardCreatorButton { grid-area: button }
#boardCreator {
display: grid;
grid-template-areas:
"input"
"list"
"button";
grid-gap: 5px;
}
#board { width: 100% !important; overflow: hidden; }
.boardinfolist, .boardrelitems {
list-style-type: none;
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
}
.boardinfo td, .boardmeta td {
max-width: 40%;
min-width: 180px;
vertical-align: top;
}
#boardInfo, #boardMeta, #boardKey {
padding: 10px;
}
#bone div {
display: inline;
padding-left: 5px;
}
.boardkey td {
padding-right: 5px;
}
.jqx-kanban-item-color-status {
width: 100% !important;
height: 100%;
opacity: 0.2 !important
}
.jqx-kanban-item-footer {
border-top: 0px none transparent !important;
}
JavaScript
function updatedItem() {
var anId = "123063"
var anObject = {
"resourceId": 123063,
"tags": ' ',
"text": "Unable to create new items in Master_Detail",
"label": "Unable to create new items in Master_Detail",
"className": "",
"status": "New",
"color": "rgb(255, 255, 0)",
"EVA_Issue_Priority": "High",
"EVA_Issue_Type": "Fault"
};
$("#board").jqxKanban("updateItem", anId, anObject)
};
$(document).ready(function() {
var fields = // Board Item Config
[{
"type": "string",
"name": "id"
}, {
"type": "string",
"name": "status",
"map": "state"
}, {
"type": "string",
"name": "text",
"map": "label"
}, {
"type": "string",
"name": "color",
"map": "color"
}, {
"type": "string",
"name": "tags"
}, {
"type": "number",
"name": "resourceId"
}, {
"type": "string",
"name": "EVA_Issue_Priority",
"map": "EVA_Issue_Priority"
}, {
"type": "string",
"name": "EVA_Issue_Type",
"map": "EVA_Issue_Type"
}];
var source = {
localData: // Board Items
[{
"resourceId": 123138,
"tags": null,
"EVA_Issue_Type": "Fault",
"label": "List Search returning spurious results or none at all",
"state": "New",
"color": "rgb(244, 164, 96)",
"id": "123138",
"EVA_Issue_Priority": "High"
}, {
"resourceId": 123063,
"tags": null,
"EVA_Issue_Type": "Fault",
"label": "Unable to create new items in Master Detail",
"state": "New",
"color": "rgb(255, 215, 0)",
"id": "123063",
"EVA_Issue_Priority": "Medium"
}],
dataType: "array",
dataFields: fields
};
var dataAdapter = new $.jqx.dataAdapter(source);
var resourcesAdapterFunc = function() {
var resourcesSource = {
localData: //Board Item Attribute Values
[{
"EVA_Issue_Type":...