Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement readonly and locations parameters to interacts
readonly=True immediately disables the controls, so they can only be changed programmatically locations is a dict that specifies, for each variable, a jQuery selector in which to put the control. The special "_output" control can also be specified. Any controls not named are automatically added to the default layout. To work correctly, the jQuery selectors should be empty divs or spans that are children of an element with class "sagecell". The locations will be emptied before the controls are created. The idea of the locations parameter is to make it easy to have custom layouts for the controls and outputs, possibly separated all over a page.
- Loading branch information
Jason Grout
committed
Aug 3, 2013
1 parent
56f508e
commit 377b769
Showing
3 changed files
with
52 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters