MCPcopy
hub / github.com/RaspberryPiFoundation/blockly / setMax

Method setMax

packages/blockly/core/field_number.ts:168–171  ·  view source on GitHub ↗

* Sets the maximum value this field can contain. Updates the value to * reflect. * * @param max Maximum value.

(max: number | string | undefined | null)

Source from the content-addressed store, hash-verified

166 * @param max Maximum value.
167 */
168 setMax(max: number | string | undefined | null) {
169 this.setMaxInternal(max);
170 this.setValue(this.getValue());
171 }
172
173 /**
174 * Sets the maximum value this field can contain. Called internally to avoid

Callers 1

Calls 2

setMaxInternalMethod · 0.95
getValueMethod · 0.45

Tested by

no test coverage detected