html in customButtons
See original GitHub issueWhile creating a custom button, how do I use FontAwesome icons as button text?
I have tried
customButtons: { syncbtn: { text: '<i class="fa fa-glide"></i>' } },
But this shows the text as it is and doesn’t convert it to a glyph.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:9
- Comments:8 (2 by maintainers)
Top Results From Across the Web
How to create a form with custom buttons in HTML
There are two ways to create custom buttons with PUSH button in HTML document. Method 1: Using text as a push button.
Read more >Make Custom Buttons in HTML and CSS - YouTube
How to make your own customized hyperlink buttons for web pages in HTML and CSS.Source code is available at: ...
Read more >CSS Buttons - W3Schools
Learn how to style buttons using CSS. Basic Button Styling. Default Button CSS Button. Example .button { background-color ...
Read more >how to use custom buttons in html forms - Stack Overflow
You can override or customise the default button using css. You can apply the css by using class name or id or default...
Read more >How to: create custom HTML links/buttons - Inline Manual
Read more about adding custom buttons here. However, it's also possible to add custom links/buttons with HTML. You'll be able to add your ......
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
Hi @arpitgogia, questions like these should usually be posted at stackOverflow, to use Font-Awesome icons in your buttons you could do the following:
And in your CSS you should add the following:
It’s a bit of a hack, because FullCalendar automatically prepends the first icon class with
fc-icon-
.Adding custom html to buttons would also help if you use react, because you could render the button icons as svg and don’t have to load the complete fontAwesome file 👍
Hack: Just add a custom button. Afterwards set the svg manually using js in
componentDidUpdate
: