mirror of
https://github.com/google/blockly.git
synced 2026-01-04 23:50:12 +01:00
feat: make field initView and initModel more accessible (#7345)
* chore: update loop style to remove any type * feat: make initView protected and initModel public * feat: make image element in image field protected
This commit is contained in:
committed by
GitHub
parent
0ac86c7e68
commit
a0b565724b
@@ -321,10 +321,8 @@ export abstract class Field<T = any>
|
||||
|
||||
/**
|
||||
* Create the block UI for this field.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
initView() {
|
||||
protected initView() {
|
||||
this.createBorderRect_();
|
||||
this.createTextElement_();
|
||||
}
|
||||
@@ -332,8 +330,6 @@ export abstract class Field<T = any>
|
||||
/**
|
||||
* Initializes the model of the field after it has been installed on a block.
|
||||
* No-op by default.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
initModel() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user