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

Add post Promise functions #775

Open
wants to merge 3 commits into
base: 8.x-1.x
Choose a base branch
from

Commits on Apr 12, 2016

  1. Add post Promise functions

    Currently, there's a global postRender process, it works like a charm, but I think there's missing something. A postRender for Promises, like a callback.
    
    To justify this proposition, here's a case :
    
    Lets say we have an "AddToCalendar" link inside each views row. 
    So when we call theme_view, theres nothing we can do to add an event on each links.
    Global postRender is of course triggered before the view query. We could add a jQuery ".on()" function on body, but it's not really interesting since my solution here solve that problem.
    
    What do you think?
    jfcartier committed Apr 12, 2016
    Configuration menu
    Copy the full SHA
    e02456d View commit details
    Browse the repository at this point in the history
  2. data is added to views callback

    It could be useful to have the views results. We could want to manipulate something with data.attributes or even check what the view's output is to make something if its empty or not.
    jfcartier committed Apr 12, 2016
    Configuration menu
    Copy the full SHA
    e425653 View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2016

  1. Configuration menu
    Copy the full SHA
    e4ad244 View commit details
    Browse the repository at this point in the history