Is it possible to customize the background color of the Kanban columns so that they are not the default gray color?
|
<style>
.e-kanban .e-kanban-table.e-content-table .e-content-row:not(.e-swimlane-row) td {
background-color: black;
}
</style> |
Thank you, that works!
Thank you, this was a very userful answer.
And then go ahead and append this outside the @code{} part.
Using the different values that you know the status field will have (mine are "programada", "activa" and so on...
My final Kanban looks like this:
Hi Jordi,
In your shared code, you are setting the card template CSS class and applying styles to each card background. If you wish to apply a background colour to each column using a swimlane layout, you can apply the below styles.
Index.razor
|
<style> .e-kanban .e-kanban-table.e-content-table .e-content-row:not(.e-swimlane-row) td[data-key="Open"] { background-color: #79c8f7; } .e-kanban .e-kanban-table.e-content-table .e-content-row:not(.e-swimlane-row) td[data-key="InProgress"] { background-color: #79f7a8; } </style> |
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Sfkanban-back381610295
If the above solution does not meet your requirements, kindly get back to us with more details about your requirements.
Regards,
Buvana S
Hello
Wow! that's very useful! I actually spent like 4 hours searching fos this detail within the documentation.
Along this lines, i have 2 questions:
What would be the class to change the header's colors in the same fashion?
Also, Can the column headers stay visible while scrolling?
Thanks a lot!
You can change the header’s color in the same manner by using the below CSS styles.
|
.e-kanban .e-kanban-table.e-header-table .e-header-row:not(.e-swimlane-row) th[data-key="Open"] { background-color: #79c8f7; } .e-kanban .e-kanban-table.e-header-table .e-header-row:not(.e-swimlane-row) th[data-key="InProgress"] { background-color: #79f7a8; } |
In order to freeze the headers, check the below documentation for reference.
Documentation: https://blazor.syncfusion.com/documentation/kanban/swimlane#enable-frozen-rows