mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-09 13:52:23 +00:00
display cost schedule predefined type in web ui
This commit is contained in:
@@ -211,10 +211,15 @@ function handleCostSchedulesData(data) {
|
|||||||
costScheduleDiv.innerHTML = "";
|
costScheduleDiv.innerHTML = "";
|
||||||
costSchedules.forEach((costSchedule) => {
|
costSchedules.forEach((costSchedule) => {
|
||||||
costSchedule.UpdateDate = new Date(costSchedule.UpdateDate);
|
costSchedule.UpdateDate = new Date(costSchedule.UpdateDate);
|
||||||
const mainContainer = CostUI.text("Updated On: " + costSchedule.UpdateDate);
|
const predefinedType = CostUI.text("Predefined Type: " + costSchedule.PredefinedType)
|
||||||
|
const updatedOn = CostUI.text("Updated On: " + costSchedule.UpdateDate);
|
||||||
|
const div = document.createElement("div");
|
||||||
|
|
||||||
|
div.appendChild(predefinedType);
|
||||||
|
div.appendChild(updatedOn);
|
||||||
const callback = () => loadCostSchedule(costSchedule.id, blenderId);
|
const callback = () => loadCostSchedule(costSchedule.id, blenderId);
|
||||||
|
|
||||||
const card = CostUI.createCard(costSchedule.Name, mainContainer, callback);
|
const card = CostUI.createCard(costSchedule.Name, div, callback);
|
||||||
costScheduleDiv.append(card);
|
costScheduleDiv.append(card);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user