MCPcopy
hub / github.com/g3n/engine / AddAttrib

Method AddAttrib

gui/builder.go:482–485  ·  view source on GitHub ↗

AddAttrib adds an attribute type and its checker/converte If the attribute type name already exists it is replaced.

(typename string, acf AttribCheckFunc)

Source from the content-addressed store, hash-verified

480// AddAttrib adds an attribute type and its checker/converte
481// If the attribute type name already exists it is replaced.
482func (b *Builder) AddAttrib(typename string, acf AttribCheckFunc) {
483
484 b.attribs[typename] = acf
485}
486
487// build builds the gui object from the specified description.
488// All its children are also built recursively

Callers 4

newChartScaleXFunction · 0.45
newChartScaleYFunction · 0.45
newGraphFunction · 0.45
InitializeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected