Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ClassName to ResourceCellHtml #171

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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