Index

ComponentNode

MMO\client\scs\nodes · 1 symbol · generated 30 Sep 2026

class

ComponentNode

ComponentNode.php:10

@component button { ... } -- css rules attached to a generated (or explicit) selector.

class MMO\client\scs\nodes\ComponentNode extends MMO\client\scs\nodes\Node
Namespace
MMO\client\scs\nodes
Extends
Node
A bare name is turned into a selector through the compiler's `componentSelector` option (`.button` by default); an explicit selector (`@component .btn`) is used as written.

Properties3

explicit

bool $explicit
Type
bool

selector

MMO\client\scs\nodes\ValueListNode $selector
Type
ValueListNode

Methods1

__construct($selector, $explicit, $body)

ComponentNode.php:16
function __construct( MMO\client\scs\nodes\ValueListNode $selector, bool $explicit = false, array $body = [] )
$selectorValueListNodethe component name, or its explicit selector
$explicit = falsebooltrue when the source declared a selector rather than a name
$body = []array
Inherited members (3)
PropertiesDeclared byDescription
locationNode
wsNode
MethodsDeclared byDescription
at($location, $ws)Node