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

Function getAriaValue

packages/blockly/core/field.ts:340–346  ·  view source on GitHub ↗

* Gets an ARIA-friendly label representation of this field's value. * * Note that implementations should generally always override this value to * ensure a non-null value is returned. The default implementation relies on * 'getText' which may return an empty string. A null return value f

()

Source from the content-addressed store, hash-verified

338 * currently defined or known for the field.
339 */
340 getAriaValue(): string | null {
341 if (this.getValue() == null) {
342 return null;
343 } else {
344 return this.getText();
345 }
346 }
347
348 /**
349 * Computes a descriptive ARIA label to represent this field with configurable

Callers

nothing calls this directly

Calls 2

getTextMethod · 0.65
getValueMethod · 0.45

Tested by

no test coverage detected