Skip to content
This repository was archived by the owner on Jan 10, 2019. It is now read-only.
This repository was archived by the owner on Jan 10, 2019. It is now read-only.

Improve Popover Mixin #33

@capricube

Description

@capricube

You can simplify your Popover mixin if you inject the container component using the annotation @InjectContainer:

@MixinAfter
public class Popover
{
@InjectContainer
private ClientElement container;

@Inject
private JavaScriptSupport javaScriptSupport;

@BeginRender
void beginRender()
{
    javaScriptSupport.addScript("$('#%s').popover()", container.getClientId());
}

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions