2020-03-01 11:04:42 +01:00
|
|
|
import FlexContainer from "./flex_container.js";
|
|
|
|
import NoteTitleWidget from "./note_title.js";
|
|
|
|
import NoteDetailWidget from "./note_detail.js";
|
|
|
|
import NoteTreeWidget from "./note_tree.js";
|
2020-03-01 11:53:02 +01:00
|
|
|
import MobileGlobalButtonsWidget from "./mobile_global_buttons.js";
|
2020-03-01 11:04:42 +01:00
|
|
|
|
|
|
|
export default class MobileLayout {
|
|
|
|
getRootWidget(appContext) {
|
|
|
|
return new FlexContainer('row')
|
|
|
|
.setParent(appContext)
|
|
|
|
.id('root-widget')
|
|
|
|
.css('height', '100vh')
|
|
|
|
.child(new FlexContainer('column')
|
2020-03-01 11:53:02 +01:00
|
|
|
.child(new MobileGlobalButtonsWidget())
|
2020-03-01 11:04:42 +01:00
|
|
|
.child(new NoteTreeWidget()))
|
|
|
|
.child(new FlexContainer('column')
|
|
|
|
.child(new NoteTitleWidget())
|
|
|
|
.child(new NoteDetailWidget()));
|
|
|
|
}
|
|
|
|
}
|