Merge pull request #4292 from terman/jsinput
Supply initial_state attribute for jsinput tag
This commit is contained in:
@@ -294,6 +294,9 @@ The following table describes the attributes of the ``jsinput`` element.
|
||||
- The function in your JavaScript application that saves the state of the
|
||||
objects.
|
||||
- ``JSObject.setState``
|
||||
* - initial_state
|
||||
- A JSON string representing the initial state, if any, of the objects.
|
||||
- '{"selectedObjects":{"cube":true,"cylinder":false}}'
|
||||
* - width
|
||||
- The width of the IFrame in which your JavaScript application will be
|
||||
displayed, in pixels.
|
||||
@@ -309,4 +312,4 @@ The following table describes the attributes of the ``jsinput`` element.
|
||||
* - sop
|
||||
- The same-origin policy (SOP), meaning that all elements have the same
|
||||
protocol, host, and port. To bypass the SOP, set to ``true``.
|
||||
- false
|
||||
- false
|
||||
|
||||
Reference in New Issue
Block a user