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

Method css_identifier

src/textual/dom.py:839–844  ·  view source on GitHub ↗

A CSS selector that identifies this DOM node.

(self)

Source from the content-addressed store, hash-verified

837
838 @property
839 def css_identifier(self) -> str:
840 """A CSS selector that identifies this DOM node."""
841 tokens = [self.__class__.__name__]
842 if self.id is not None:
843 tokens.append(f"#{self.id}")
844 return "".join(tokens)
845
846 @property
847 def css_identifier_styled(self) -> Text:

Callers

nothing calls this directly

Calls 2

appendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected