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

Navigate within consentcookie using API #65

Open
StevenChoo opened this issue Jun 26, 2018 · 3 comments
Open

Navigate within consentcookie using API #65

StevenChoo opened this issue Jun 26, 2018 · 3 comments

Comments

@StevenChoo
Copy link
Member

Description

Open, Close and change view in ConsentCookie using the ConsentCookie API

Expected Behavior

An API that is available to navigate within ConsentCookie

Actual Behavior

There is no API available

@StevenChoo
Copy link
Member Author

@christianvriens @rockxwre Do you have any suggestion for the naming of the API method

My suggestion would be:

ConsentCookie.open($view)
ConsentCookie.close($view)

with view the name of the ConsentCookie window to be opened or closed.

@StevenChoo
Copy link
Member Author

How do we handle using this API to open ConsentCookie when the consentwall is active but the consentwall has nog been accepted.

Possible options are:

  • throw an error
  • auto accept consentwall
  • add a parameter to the API method to be able to choose this behaviour using a flag
    ** e.g. autoAccept consentwall

@rockxwre
Copy link
Contributor

rockxwre commented Jun 26, 2018

@christianvriens @rockxwre Do you have any suggestion for the naming of the API method

Maybe show and hide is better than open and close, since the latter is more ambiguous?

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

2 participants