working on toolbar

This commit is contained in:
paul
2024-09-13 16:03:58 +05:30
parent 23f1e08fbc
commit fa993f7e7b
8 changed files with 118 additions and 47 deletions

View File

@@ -92,6 +92,8 @@ class Widget extends React.Component{
this.getElement = this.getElement.bind(this)
this.getBoundingRect = this.getBoundingRect.bind(this)
this.getWidgetName = this.getWidgetName.bind(this)
this.getWidgetType = this.getWidgetType.bind(this)
// this.openRenaming = this.openRenaming.bind(this)
this.isSelected = this.isSelected.bind(this)
@@ -129,6 +131,14 @@ class Widget extends React.Component{
return toSnakeCase(this.state.widgetName)
}
getWidgetName(){
return this.state.widgetName
}
getWidgetType(){
return this.constructor.widgetType
}
/**
* removes the element/widget
*/