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

how to update? #36

Open
DaveDeveloper opened this issue Mar 19, 2014 · 1 comment
Open

how to update? #36

DaveDeveloper opened this issue Mar 19, 2014 · 1 comment

Comments

@DaveDeveloper
Copy link

in bookblock.js there is public method "update" that dynamically adds new elements
I am trying to call this method after inserting new "bb-item" elements inside the BookBlock using a separate ajax call. I am following the example in index4.html.

I cannot figure out how to call this update method.

Please help.

@pherrymason
Copy link

They way I used it:

var $book = $('#book').bookblock();
$book.append('<div class="bb-item">NEW PAGE</div>');
$book.bookblock('update');
$book.bookblock('next');

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