Skip to content

Instantly share code, notes, and snippets.

@ujnak
Last active February 9, 2023 06:39
休日を表示するDayFormatter
let result = apex.server.process("GET_HOLIDAYS");
result.done( (data) => {
window.holidays = data;
console.log("holidays loaded.");
//
apex.item("P1_DATE3").dayFormatter = (pDate) => {
const d = window.holidays.find(e => e.day == pDate);
if (d != null) {
return {
disabled: false, // またはtrue
class: "u-danger-text",
tooltip: d.name
};
}
}
apex.item("P1_DATE3").refresh();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment