Skip to content

Added 'data' attribute#4

Open
wmerfalen wants to merge 1 commit intoFoundOPS:masterfrom
wmerfalen:master
Open

Added 'data' attribute#4
wmerfalen wants to merge 1 commit intoFoundOPS:masterfrom
wmerfalen:master

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.

1 participant