blockly > Field > render_
Field.render_() method
Used by getSize() to move/resize any DOM elements, and get the new size.
All rendering that has an effect on the size/shape of the block should be done here, and should be triggered by getSize().
Signature:
protected render_(): void;
Returns:
void
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."],[[["`Field.render_()` is called by `getSize()` to adjust the size and position of DOM elements within the field."],["This method handles all rendering operations that impact the field's dimensions and shape."],["It's crucial that any size-affecting rendering is performed within `render_()` and triggered by `getSize()`."],["`render_()` does not return any value."]]],[]]