working on toolbar
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user