Core
Placeholder
A placeholder for a node that does not exist yet. Use bool checks (ie is node) to check if the node exists. You can call edit to replace the placeholder with a real node and it will automatically insert formatting.
View Source on Github
Methods
edit
Replaces the content of a placeholder node with new source code.
View Source on Github
Parameters
new_src
str
required
The new source code to replace the placeholder with.
fix_indentation
bool, optional
default:False
Whether to automatically fix the
priority
int, optional
default:0
Priority value for conflict resolution.
dedupe
bool, optional
default:True
Whether to prevent duplicate insertions.
Returns
None
remove
Removes this element from its parent container.
View Source on Github
Returns
None
Was this page helpful?