Skip to content

Conversation

@bosquig
Copy link

@bosquig bosquig commented May 16, 2016

Add the possibility to add a class name to the th cell depending the resource.
exemple :
resource : [
{
id: 'a',
title: 'Room A',
cellClassName: 'backup'
},
{
id: 'b',
title: 'Room B',
cellClassName : 'first'
}]

HTML result :
< th class="fc-resource-cell backup" data-resource-id="a">Room A< /th>
< th class="fc-resource-cell first" data-resource-id="b">Room B< /th>

Add the possibility to add a class name to the th cell depending the resource.
exemple :
resource :  [
    {
        id: 'a',
        title: 'Room A',
        cellClassName: 'backup'
    },
    {
        id: 'b',
        title: 'Room B',
        cellClassName : 'first'
    }]

HTML result :
<th class="fc-resource-cell backup" data-resource-id="a">Room A</th>
<th class="fc-resource-cell first" data-resource-id="b">Room B</th>
@bosquig
Copy link
Author

bosquig commented Feb 28, 2017

Hello, can I have any update regarding this PR ?

Thanks in advance for your reply.

@arshaw
Copy link
Member

arshaw commented Mar 13, 2017

Thanks. this PR is most closely related to this issue ticket: https://github.com/fullcalendar/fullcalendar-scheduler/issues/125

Before merging this, it would be great to have the following:

  • have the className also work in timeline view
  • have the className not just apply to the header (or in timeline's case, the left area), but also the main area of the resource. If you want to style just the header, you can use a combination of CSS selectors.

@arshaw arshaw added the WIP label Mar 13, 2017
@github-actions github-actions bot mentioned this pull request Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants