-
Notifications
You must be signed in to change notification settings - Fork 2
mjy edited this page May 3, 2012
·
23 revisions
In development
We'd like the plugin to be unobtrusive, using HTML data- elements. Something like this:
<div id="my_browser"
data-jmatrix_browser=true
data-api="http://foo.org/path/to/api"
>
</div>
- = required
data-api=http://foo.org/path/to/api * The API to call
data-jmatrix_browser=true * This element is the wrapper for a jMatrixBrowser
data-initial-window-size="2,3" - Define the width, height of the initial window (defaults to 10,10 ?)
data-initial-window-position="x,y" - Define the x,y position of the window (defaults to 0,0)
data-background-load=[none|???] ?? The algorithm to use for background loading (defaults to "none")
data-layers="0:data,1:age,2:confidence" ?? I think we could allow custom API layers based on key-value configuration
I'll explain at next meeting
data-translation-method - A users jQuery method that translates a API response into a jMatrixQuery jSon
acceptable response
We want to provide a simple set of CSS hooks so that the user can style their matrix viewer, we'll need a default stylesheet as well Some considerations (just thinking of the top of my head here)
window_height=px window_width=px