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

Method appendField

packages/blockly/core/inputs/input.ts:78–81  ·  view source on GitHub ↗

* Add a field (or label from string), and all prefix and suffix fields, to * the end of the input's field row. * * @param field Something to add as a field. * @param opt_name Language-neutral identifier which may used to find this * field again. Should be unique to the host block

(field: string | Field<T>, opt_name?: string)

Source from the content-addressed store, hash-verified

76 * @returns The input being append to (to allow chaining).
77 */
78 appendField<T>(field: string | Field<T>, opt_name?: string): Input {
79 this.insertFieldAt(this.fieldRow.length, field, opt_name);
80 return this;
81 }
82
83 /**
84 * Inserts a field (or label from string), and all prefix and suffix fields,

Callers 15

updateCollapsedMethod · 0.80
interpolateMethod · 0.80
text.tsFile · 0.80
lists.tsFile · 0.80
procedures.tsFile · 0.80
logic.tsFile · 0.80
block_test.jsFile · 0.80
input_test.jsFile · 0.80

Calls 1

insertFieldAtMethod · 0.95

Tested by

no test coverage detected