Our pure JavaScript Scheduler component


Post by peterjc »

Hi, would like to be able to colour and style my resource cells, exactly like is done [here].[https://www.bryntum.com/docs/scheduler/#guides/basics/columns.md]
screenshot29.png
screenshot29.png (36.18 KiB) Viewed 678 times
I have added the following as per the linked doc...
 columns = [
    {
      type: 'resourceInfo', text: 'Staff', field: 'name', showImage: false, showEventCount: false,
      renderer({ cellElement, record }) {
           cellElement.style.backgroundColor = 'pink';
            cellElement.style.color = '#fff';
           cellElement.style.padding = 10;
           return "santa";
        }
    },
But the renderer is just never called.

Any idea what could be wrong here? (attached my sample app)?

Thanks in advance!
Attachments
scheduler-ionic1(27-9-19).zip
(219.95 KiB) Downloaded 94 times

Post by pmiklashevich »

Thanks for the report! Got it fixed: https://app.assembla.com/spaces/bryntum/tickets/9316-should-be-possible-to-specify-renderer-for-resourceinfocolumn/details
The fix will be available in the next release. Cheers!

Pavlo Miklashevych
Sr. Frontend Developer


Post Reply