question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding CSS classes to custom buttons

See original GitHub issue

Checklist

Please mark these items with an [x]

  • I’ve already searched through existing tickets
  • Other people will find this feature useful

Feature Description

Continuation of https://github.com/fullcalendar/fullcalendar/issues/5117

It would be nice if we could add CSS classes to custom buttons. That way we can visually separate the buttons, which can make them more user friendly. For example, I’d like the “Today” button to be more prominent than the other buttons in the toolbar.

Something like this would already suffice:

customButtons: {
    dangerousButton: {
      text: 'dangerous action',
      classNames: 'btn-danger btn-sm',
      click: function() {
        alert('this will do something dangerous');
      }
    }
}

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:33
  • Comments:24

github_iconTop GitHub Comments

9reactions
stclairdanielcommented, Jan 27, 2021

I’ll take it a step further - why not just allow passing in a component?

3reactions
jaapzcommented, Jan 28, 2021

Or a rendered dom tree, we’re not using React…

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Customize Button Styles With CSS (With Examples)
How to Customize Button Styles With CSS (With Examples) · 1. Create a Transparent Background · 2. Create a Gradient Button · 3....
Read more >
How to Style Buttons with CSS in WordPress.com
1. Access the customizer · 2. Customize site buttons · 3. Copy-and-paste CSS · 4. Select “Save and Publish” · 5. Access CSS...
Read more >
Pure CSS Customizing Buttons - GeeksforGeeks
The Customizing Buttons facilitates customizing the button styles such as color, shape, size, and icons, by grouping the custom CSS into a ...
Read more >
Ability to add CSS classes to custom buttons #5117 - GitHub
Is there a way to add a custom class to a custom button? In the docs it says buttons have. text click icon...
Read more >
Add custom styles to your button CTA
You can apply custom CSS styling to your button CTA using only either the Custom CSS class or the Custom CSS option. If...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found