How to set border color on loading data


#1

Hello,

I have set different color for different types of even like…
var data = [
{id:“1”,text:“Event 1”,start_date:“2011-07-01 15:00:00”,“end_date”:“2011-07-01 19:00:00”,color:"#66ccff"},
{id:“2”,text:“Event 2”,start_date:“2011-07-02 09:30:00”,“end_date”:“2011-07-02 12:00:00”,color:"#cc99ff"},
{id:“3”,text:“Event 3”,start_date:“2011-07-04 11:00:00”,“end_date”:“2011-07-04 13:45:00”,color:"#66ccff"},
{id:“4”,text:“Event 4”,start_date:“2011-07-05 10:15:00”,“end_date”:“2011-07-05 12:00:00”,color:"#cc99ff"},
{id:“5”,text:“Event 5”,start_date:“2011-07-05 19:00:00”,“end_date”:“2011-07-05 22:00:00”,color:"#00cccc"},
{id:“6”,text:“Event 6”,start_date:“2011-07-15 09:00:00”,“end_date”:“2011-07-15 19:30:00”,color:"#66ccff"},
{id:“7”,text:“Event 7”,start_date:“2011-07-27 14:30:00”,“end_date”:“2011-07-27 18:00:00”,color:"#00cccc"},
];

But the border color repeat the same for all background color that is 1px solid #78a4b4

Hear i want to use the same border color as in even color such as…

{id:“7”,text:“Event 7”,start_date:“2011-07-27 14:30:00”,“end_date”:“2011-07-27 18:00:00”,color:"#00cccc",border:"#00cccc"},

is there any way like this , but i tried like this, it’s not worked

so, please suggest me how to get…

Thanks


#2

Hello,

there is not “border” property. And “color” property does not change border color.

You can use event_class template to define class name for event parent container and apply styling you need:

docs.dhtmlx.com/touch/doku.php?i … vent_class

docs.dhtmlx.com/touch/doku.php?i … le_styling