Terminal TAST
Cheat Sheets
Types Cheat Sheet
Main types accepted by the JSON-based language and their accepted properties.
Copy
{ "type": "Inline", { "type": "Bind",
- children - property
- style - bindStyle - value?
- action - bindAction }
- actions - bindActions
- tooltip - bindTooltip { "type": "BindThis",
- isTabStop - bindIsTabStop - value?
- isVisible - bindIsVisible }
- inlineType - bindInlineType
- themeType - bindThemeType { "type": "BindIterator",
- ref - bindRef - children
} - property
}
{ "type": "Pad",
- children { "type": "BindSpan",
- width - bindWidth - children
- alignment - bindAlignment - property
- character - bindCharacter }
}
{ "type": "BindObject",
{ "type": "Scope" - children
- children - property
} }
Terminal Access Cheat Sheet
TAST is part of the terminal, use terminal dispatchers and selectors to interact with them.
Terminal Content |
Description |
---|---|
appendTerminalTAST | Adds a plugin. |
writeTerminalTAST | Adds more kernels to the current test. |
spliceTerminalTAST | Provides access to helpers API. |
getTerminalVisibleTAST | Renders a POSComponent of a given name. |
getTerminalRawTAST | Returns the current redux state. |
findTerminalVisibleRange | Creates a state selector function. |
findTerminalLastVisibleRange | Returns redux action dispatcher. |
findTerminalRawRange | A selector that finds a TAST range inside the terminal Raw TAST. |
Inlines |
Description |
---|---|
setTerminalInline | Modifies an existing Inline of a Terminal, adds new properties, and merges existing ones. |
setTerminalsInlineTypes | Modifies the global InlineTypes. Adds new InlineTypes and overwrites existing ones. |
hideTerminalInline | Hides an Inline of a Terminal. If the Inline already was hidden, it stays hidden. |
showTerminalInline |
Shows a hidden Inline of a Terminal. If the Inline already was visible, it stays visible. |
toggleTerminalInlineVisibility | Toggles the visibility of an Inline of a Terminal. |
getTerminalInlineRef | Gets the ID of the Inline which has the mentioned ref and is in the same scope than the mentioned Inline. |
getTerminalInlineTooltip |
Gets the tooltip of an Inline. |
getTerminalInlineAction |
Gets the action of an Inline. The action is a Redux action and must have a type. |
getTerminalInlineActions |
Gets the actions (events) of an Inline. |
getTerminalInlineStyle | Gets the style of an Inline. The style is an Object with the css properties that the Inline has. |
isTerminalInlineTabStop |
Checks if an Inline is or not a TabStop. |
isTerminalInlineVisible | Checks if an Inline is or not visible. |