-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
right: Add RIGHT option, like DOWN but a different direction
- Loading branch information
Showing
11 changed files
with
237 additions
and
4 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
Right field | ||
=========== | ||
|
||
|
||
Definition | ||
---------- | ||
|
||
Sometimes you want to allow people to put in multiple columns with the same set of headings in rows. | ||
People can put in as few or as many columns as they want. | ||
Each column will be converted to one JSON dictionary. | ||
In the final data, there will be a list of JSON dictionaries. | ||
|
||
|
||
To do this, in your cell put | ||
|
||
.. code-block:: none | ||
SPREADSHEETFORM:RIGHT:listkey:itemkey | ||
The `listkey` is the JSON key that the list of items will appear in. | ||
|
||
All Down configurations for the same `listkey` should appear on the same row. | ||
|
||
You should probably only have one set of right configurations per set of rows and to the right of that there should be nothing. | ||
This is because the user can put as many data columns as they want in; if you try and put something else there it may be overwritten. | ||
|
||
The order of the columns and the order of the items in the JSON list will be the same. | ||
|
||
The `itemkey` is the JSON key that the data will appear in in each dictionary. | ||
|
||
See :doc:`JSON Key for information on how to structure those<jsonkey>`. | ||
|
||
Example | ||
------- | ||
|
||
A guide of: | ||
|
||
+-------------------------------------+------------------------------------------+ | ||
| Title | SPREADSHEETFORM:RIGHT:toys:title | | ||
+-------------------------------------+------------------------------------------+ | ||
| Does it squeak? | SPREADSHEETFORM:RIGHT:toys:squeak | | ||
+-------------------------------------+------------------------------------------+ | ||
|
||
And a spreadsheet of: | ||
|
||
+--------------------------+-----------------+------------------------+ | ||
| Title | Plastic bone | Tennis Ball | | ||
+--------------------------+-----------------+------------------------+ | ||
| Does it squeak? | Oh Yes | No | | ||
+--------------------------+-----------------+------------------------+ | ||
|
||
Will map to the data: | ||
|
||
|
||
.. code-block:: json | ||
{ | ||
"toys": [ | ||
{"title": "Plastic bone", "squeak": "Oh Yes"}, | ||
{"title": "Tennis Ball", "squeak": "No"}, | ||
] | ||
} | ||
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
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