MCPcopy
hub / github.com/Textualize/textual / add_class

Method add_class

src/textual/css/query.py:390–394  ·  view source on GitHub ↗

Add the given class name(s) to nodes.

(self, *class_names: str)

Source from the content-addressed store, hash-verified

388 return self
389
390 def add_class(self, *class_names: str) -> DOMQuery[QueryType]:
391 """Add the given class name(s) to nodes."""
392 for node in self:
393 node.add_class(*class_names)
394 return self
395
396 def remove_class(self, *class_names: str) -> DOMQuery[QueryType]:
397 """Remove the given class names from the nodes."""

Callers 10

__init__Method · 0.45
watch__selectedMethod · 0.45
watch_variantMethod · 0.45
_start_active_affectMethod · 0.45
add_tabMethod · 0.45
watch_activeMethod · 0.45
_activate_tabMethod · 0.45
hideMethod · 0.45
watch_orientationMethod · 0.45
watch_variantMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected