blockly > Field > getDisplayText_
Field.getDisplayText_() method
Get the text from this field to display on the block. May differ from getText
due to ellipsis, and other formatting.
Signature:
protected getDisplayText_(): string;
Returns:
string
Text to display.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["The `getDisplayText_` method retrieves the display text of a field on a Blockly block, which might be formatted differently from the raw text for display purposes."],["This method is primarily for internal use and is distinct from `getText`, potentially using ellipsis or other formatting to optimize the display on the block."],["The returned value is a string containing the formatted text ready for display."]]],[]]