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

Adding a hyperlink or button along with the title in the tabs not working. #31

Closed
yesnkay opened this issue Oct 23, 2018 · 3 comments
Closed

Comments

@yesnkay
Copy link

yesnkay commented Oct 23, 2018

I want to add a hyperlink or button to the title, so that i can give option to edit tabs. Currently the hyperlink added inside the tabs along with the title doesnt work...

@marcosrocha85
Copy link
Contributor

Hello @zhenshaav, the title property allows you to insert any kind of HTML. In my case I did:

var jkanban = new jKanban({
    element: '#my_kanban',
    boards: [
        {
            'id': '_todo',
            'title': 'ToDo List<div class="button_new" style="float: right;"><button class="btn-round" type="button"><i class="fa fa-plus"></i></button></div>',
            'item': [
                // ...
            ]
        }
    ]
});

To make something like this:
image

@yesnkay
Copy link
Author

yesnkay commented Oct 23, 2018

Thanks for your reply.
I added a href link in the item -> title. But when i clicked the hyperlink there was no action.
(The click link in the below image.)

kanban view

@marcosrocha85
Copy link
Contributor

You won't achieve that without some code. When you click at an item you actually clicking in a DIV. What is your goal by adding a hyperlink on item?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants