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.

Custom buttons or elements in header

See original GitHub issue

Originally reported on Google Code with ID 225

Hi,

First of let me say, I love this plugin. I think it's amazing!

I was wondering if there was a way to add a custom button to the header
view? I would like to be able to add a button labeled: Add Event that would
open a new event dialog.

Is this possible?

Thanks.

Reported by raffik on 2009-12-04 04:17:33

Imported with 27 stars

Issue Analytics

  • State:open
  • Created 8 years ago
  • Reactions:16
  • Comments:49 (35 by maintainers)

github_iconTop GitHub Comments

8reactions
mik356uacommented, Jun 27, 2016

Yeah it would be great to add any html code like this or something similar:


$('#calendar').fullCalendar({
    customElements {
        myCustomDropdown: {
            html: '<div class="dropdown">\
                     <button class="btn dropdown-toggle" type="button" data-toggle="dropdown">\
                       Dropdown  <span class="caret"></span>\
                     </button>\
                     <ul class="dropdown-menu">\
                       <li><a href="#" ng-click="runAction()">Action</a></li>\
                       <li><a href="#" ng-click="runAnotherAction()">Another action</a></li>\
                     </ul>\
                   </div>'
        },
        myCustomButton: {
            type: 'button',
            text: 'custom!',
            click: function() {
                alert('clicked the custom button!');
            }
        }
    },
    header: {
        left: 'prev,next today myCustomButton',
        center: 'title',
        right: 'myCustomDropdown month,agendaWeek,agendaDay'
    }
});

And thank you for your awesome plugin:)

3reactions
venubabu1996commented, Jun 8, 2022

Screenshot 2022-06-08 132554

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to create a custom header with action buttons - TalkJS
In this tutorial, you will learn how to build a custom header for the TalkJS Chatbox and add functional buttons.
Read more >
How to Add a Button in Your WordPress Header Menu
Simply go to the Appearance » Menus page in your WordPress dashboard and add the link to your navigation menu.
Read more >
Header buttons | React Navigation
You can set buttons in the header through the headerLeft and headerRight properties in options . The back button is fully customizable with...
Read more >
How to add a custom button at the header banner of the page?
I did try to use the UI Script then a function onload but the script was inside of an Iframe which unable to...
Read more >
Add custom buttons to the POS header bar | Dynamics 365
The custom header button must contain an HTML file that includes Cascading Style Sheets (CSS) code that describes the control user interface (UI) ......
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