added file upload tool and fileUploadProvider
This commit is contained in:
@@ -344,7 +344,7 @@ class Widget extends React.Component {
|
||||
}
|
||||
|
||||
generateCode(){
|
||||
throw new NotImplementedError("Get Code must be implemented by the subclass")
|
||||
throw new NotImplementedError("generateCode() must be implemented by the subclass")
|
||||
}
|
||||
|
||||
getAttributes() {
|
||||
|
||||
@@ -4,7 +4,7 @@ const DragWidgetContext = createContext()
|
||||
|
||||
export const useDragWidgetContext = () => useContext(DragWidgetContext)
|
||||
|
||||
// Provider component to wrap around parts of your app that need drag-and-drop functionality
|
||||
// Provider component to wrap around parts that need drag-and-drop functionality
|
||||
export const DragWidgetProvider = ({ children }) => {
|
||||
const [draggedElement, setDraggedElement] = useState(null)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user