hustcc / gantt-for-react

:herb: Frappe Gantt components for React wrapper. 一个简单的甘特图 React 组件封装。
https://git.hust.cc/gantt-for-react
MIT License
310 stars 75 forks source link

'customPopupHtml' how to set css style? #16

Open qiushi0908 opened 5 years ago

qiushi0908 commented 5 years ago

I get popupView background is black; It is not my mind; And i how to setup style with pupupView? Is lick this?

  customPopupHtml = task => {
    return `
    <style type="text/css">
    .details-container {
       width: 160px;
       background: #fff;
    }
    </style>
    <div class="details-container">
          <h5>${task.name}</h5>
          <p>Expected to finish by ${task._end}</p>
          <p>${task.progress}% completed!</p>
    </div>
    `;
  };

But the pupUpView bottom and top margin is still black!