Skip to content

Can I pass a custom callback function of my own? #41

@mihaisavezi

Description

@mihaisavezi

I'm reading through the sourcecode and looking for a way to pass a callback function to check after the slot has rendered if it is empty, with the isEmpty method available on DFP.

I found where I can call that method in the source, but I'm looking for a way to pass a callback function when I define a slot.

Not an issue with the library, it does what it says. I'm trying to take a stab at this myself, but I can't see how it can be done.

Did anyone try this?

e.g. in my case, because currently the directives data-ng-dfp-ad-hide-when-empty data-ng-dfp-ad-container are not working for me and I need to hide my container.

I apologise if this is not the place for such questions, as it's not a technical issue more of a " does this feature exist " kind of thing.

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