Add row function - can be used to style or transform a row#12
Merged
Conversation
Member
Author
|
The new manual page for the row function should hopefully describe this well: |
e4d9faa to
39b02df
Compare
We have [ ].func() == space; and for consistency we want this to be treated as a row (not a stray other content/single item), because [] is a row and [ ,] is a row, so [ ] should be too.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
rowfunction can be used to transform or style a whole row at a time. For example,row([a & b & c], map: strong)styles the row usingstrong. The row function is entirely optional. It has three arguments:map- apply a function to each elementimap- apply a funtion to each element, and also receive its indexcell- set a dictionary of cell properties, e.g.fillandstrokeon the whole row.It is recommended to use the style
row([...], map: ..)with the row markup as the first argument so that rows align well to each other.Incidental changes in the same PR
[ ](one or more spaces) now counts as a row