mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
docstring
This commit is contained in:
@@ -709,7 +709,7 @@ class DOMNode(MessagePump):
|
|||||||
"""Add or remove class(es) based on a condition.
|
"""Add or remove class(es) based on a condition.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
add (bool): _description_
|
add (bool): Add the classes if True, otherwise remove them.
|
||||||
"""
|
"""
|
||||||
if add:
|
if add:
|
||||||
self.add_class(*class_names)
|
self.add_class(*class_names)
|
||||||
|
|||||||
Reference in New Issue
Block a user