mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-11-15 12:25:31 +08:00
5476fd001d
* Introduce a setup cell * Don't collapse setup cell when dirty * Collapse fresh setup cell when empty * Reword collapsed setup cell text
13 lines
346 B
JavaScript
13 lines
346 B
JavaScript
/**
|
|
* Checks if the given cell type is eligible for evaluation.
|
|
*/
|
|
export function isEvaluable(cellType) {
|
|
return ["code", "smart", "setup"].includes(cellType);
|
|
}
|
|
|
|
/**
|
|
* Checks if the given cell type has primary editable editor.
|
|
*/
|
|
export function isDirectlyEditable(cellType) {
|
|
return ["markdown", "code", "setup"].includes(cellType);
|
|
}
|