Super it’s work well.
I finally get what i was expected for:
i will share the code for the community
onBeforeEventRender: function(args) {
var html = args.data.html;
args.data.html = "";
args.data.barHidden = true;
var hlaStart = new DayPilot.Date(args.data.hla_start);
var hlaEnd = new DayPilot.Date(args.data.hla_end);
// Use the loading color, or a default color if not set
var loadingColor = args.data.backColor || "#a61c00";
args.data.backColor = "transparent";
args.data.borderColor = "transparent";
args.data.areas = [
{
start: args.data.start,
end: hlaStart, // Changed from args.data.start
top: 15,
bottom: 15,
backColor: "black", // Black line design
html: `<div style='height: 2px; background-color: black; width: 100%;'></div>`,
},
{
start: hlaEnd,
end: args.data.end,
top: 15,
bottom: 15,
backColor: "black", // Black line design
html: `<div style='height: 2px; background-color: black; width: 100%;'></div>`,
},
{
start: hlaStart,
end: hlaEnd,
top: 0,
bottom: 0,
action: "Move",
backColor: loadingColor,
style: "color: black; display: flex; justify-content: center; align-items: center;",
html: html || args.data.text,
},
{
start: hlaStart,
width: 10,
top: 0,
bottom: 0,
html: "|",
style: "color: #fff; display: flex; justify-content: center; align-items: center;",
action: "ResizeStart",
},
{
end: hlaEnd,
width: 10,
top: 0,
bottom: 0,
html: "|",
style: "color: #fff; display: flex; justify-content: center; align-items: center;",
action: "ResizeEnd",
},
];
// Store original start and end for comparison in onEventResized
args.data.originalStart = args.data.start;
args.data.originalEnd = args.data.end;
args.data.originalhla_start = hlaStart;
args.data.originalhla_end = hlaEnd;
},
Good day and again thanks to Daypilot team’s
see attach picture for the result