builtbywill / booklet

jQuery Plugin - display web content in a flipbook
http://builtbywill.com/booklet
Other
291 stars 109 forks source link

Dynamically update Chapter menu #15

Closed macsupport closed 10 years ago

macsupport commented 11 years ago

I have a bookmark option in my Booklet that when clicked, adds a bookmark icon and dynamically adds a chapter to the page. Is there a way to update the chapter list when this is done?

builtbywill commented 10 years ago

There is not a direct method to recreate the chapter and page controls.

I believe you could achieve this by simply calling the method to update the booklet's options.

var options = {
    menu: "#menu",
    pageSelector: true,
    chapterSelector: true
}

// create the booklet
$("#mybook").booklet(options);

// force an update of controls
$("#mybook").booklet("option", options);