MCPcopy Create free account
hub / github.com/cogentcore/core / Property

Method Property

tree/nodebase.go:415–417  ·  view source on GitHub ↗

Property returns the property value for the given key. It returns nil if it doesn't exist.

(key string)

Source from the content-addressed store, hash-verified

413// Property returns the property value for the given key.
414// It returns nil if it doesn't exist.
415func (n *NodeBase) Property(key string) any {
416 return n.Properties[key]
417}
418
419// DeleteProperty deletes the property with the given key.
420func (n *NodeBase) DeleteProperty(key string) {

Callers 13

TestInlineContainerFunction · 0.80
TestNoInlineContainerFunction · 0.80
handleElementFunction · 0.80
OpenURLMethod · 0.80
widgetIndexMethod · 0.80
NodePropURLFunction · 0.80
IncRefCountFunction · 0.80
RemoveOrphanedDefsMethod · 0.80
GradientCloneNodePropMethod · 0.80

Calls

no outgoing calls

Tested by 3

TestInlineContainerFunction · 0.64
TestNoInlineContainerFunction · 0.64
TestPropertiesFunction · 0.64