Adding CSS classes to custom buttons
See original GitHub issueChecklist
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:
- Created 3 years ago
- Reactions:33
- Comments:24
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll take it a step further - why not just allow passing in a component?
Or a rendered dom tree, we’re not using React…