ambitious-knife-25690
08/28/2020, 2:14 PMambitious-knife-25690
08/28/2020, 2:14 PMuser
08/28/2020, 2:14 PM.root
somewhere?ambitious-knife-25690
08/28/2020, 2:16 PMambitious-knife-25690
08/28/2020, 2:16 PMuser
08/28/2020, 2:17 PMuser
10/30/2020, 3:00 PMuser
10/30/2020, 3:01 PMuser
10/30/2020, 3:01 PMuser
10/30/2020, 3:01 PMjs
// Basic widget component
class Widget extends Component {
render() {
return <div className={`widget ${ this.props.className }`}>{this.props.children}</div>;
}
// Widget functionality
// ...
};
// This widget component will include the resizable functionality
class Resizable extends Component {
render() {
return <Widget className="resizable">I am a widget that has resizable functionality</Widget>
}
//Resiazable functionality
// ...
}
// This widget component will include the draggable functionality
class Draggable extends Component {
render() {
return <Widget className="draggable">I am a widget that has draggable functionality</Widget>
}
// Draggable functionality
// ...
}
// This widget component needs to reuse the resizable and draggable functionality of "Resizable" AND "Draggable"
class Window extends Component {
render() {
return <Widget className="window">I am a widget that needs draggable and resizable functionality</Widget>
}
// Window functionality
//
}
// This widget component needs to reuse the resizable and draggable functionality of "Resizable" AND "Draggable" and window functionality of "Window"
class App extends Component {
render() {
return <Widget className="app">I am a widget just like window, but with extra functionality for App</Widget>
}
// App functionality
// ...
};
user
10/30/2020, 3:02 PMuser
10/30/2020, 3:03 PMuser
10/30/2020, 3:04 PMambitious-knife-25690
11/08/2020, 9:39 PMuser
11/09/2020, 5:39 AMuser
11/09/2020, 5:40 AMuser
11/09/2020, 6:40 AMmui.core.styles.Styles.mergeJss({ ... }, theme.mixins.toolbar)
user
11/09/2020, 6:40 AMambitious-knife-25690
11/09/2020, 5:07 PMambitious-knife-25690
11/09/2020, 5:07 PMuser
11/09/2020, 5:12 PMwide-greece-63479
11/30/2020, 10:49 AMuser
11/30/2020, 10:58 AMuser
11/30/2020, 10:59 AMwide-greece-63479
12/02/2020, 1:43 PMwide-greece-63479
12/02/2020, 1:44 PMwide-greece-63479
12/02/2020, 1:44 PMwide-greece-63479
12/02/2020, 1:45 PMwide-greece-63479
12/02/2020, 1:45 PMwide-greece-63479
12/02/2020, 1:46 PM