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

Added 'data' attribute #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

wmerfalen
Copy link

Hello.

I recently used your plugin in a project. I wanted a bit more flexibility when adding content to the popover. I implemented a simple hack to allow the user to create their own content in the popover.

Example:

        jQuery("#popoverDiv").optionsPopover({
            id: 'popoverDiv',
            title: 'Hello world!',
            contents: [
                {'name': 'Google', 'url': 'https://www.google.com/'},
                {'data': '<h3>Custom content :)</h3>'}
            ]
        });

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

Successfully merging this pull request may close these issues.

None yet

1 participant