Kamishibai API

This page documents the Kamishibai API. If you are using Ruby-on-Rails, it is recommended that you use the Rails Kamishibai helpers instead of using the following API directly.

### Attributes on DOM Elements

data-ajax

<div id="someID">...</div>

Specifies where to send a request if we want to reload the contents of this element.

If ‘data-ajax’ is set inside an Ajax response, it will overwrite the corresponding value in the current DOM. If ‘data-ajax’ is not set inside an Ajax response, the URL of the Ajax request will be used.

Leave a Reply

Your email address will not be published. Required fields are marked *