is an option for AttachCell that specifies conditions under which to remove the attached cell.
RemovalConditions
is an option for AttachCell that specifies conditions under which to remove the attached cell.
Details
- Normally, attached cells can only be removed by running a command such as NotebookDelete. RemovalConditions specifies conditions under which the cells will automatically be removed.
Examples
Basic Examples (2)
Create an attached cell that closes when you click anywhere outside the attachment:
AttachCell["Hello world", RemovalConditions -> {"MouseClickOutside"}];Create an attached cell that closes when the cell it is attached to is edited:
AttachCell[EvaluationCell[], Framed["Edit this cell", Background -> Pink], "CellBracket", RemovalConditions -> {"ParentChanged"}];See Also
Related Guides
History
Text
Wolfram Research (2020), RemovalConditions, Wolfram Language function, https://reference.wolfram.com/language/ref/RemovalConditions.html.
CMS
Wolfram Language. 2020. "RemovalConditions." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RemovalConditions.html.
APA
Wolfram Language. (2020). RemovalConditions. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RemovalConditions.html
BibTeX
@misc{reference.wolfram_2026_removalconditions, author="Wolfram Research", title="{RemovalConditions}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/RemovalConditions.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_removalconditions, organization={Wolfram Research}, title={RemovalConditions}, year={2020}, url={https://reference.wolfram.com/language/ref/RemovalConditions.html}, note=[Accessed: 13-June-2026]}