forked from pietervdvn/MapComplete
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cd09efc
commit 33ef83c
Showing
14 changed files
with
199 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import BaseUIElement from "../BaseUIElement"; | ||
import Combine from "./Combine"; | ||
import BackToIndex from "../BigComponents/BackToIndex"; | ||
|
||
export default class LeftIndex extends Combine{ | ||
|
||
|
||
constructor(leftContents: BaseUIElement[], mainContent: BaseUIElement, options?:{ | ||
hideBackButton : false | boolean | ||
} ) { | ||
|
||
let back : BaseUIElement = undefined; | ||
if(options?.hideBackButton ?? true){ | ||
back = new BackToIndex() | ||
} | ||
super([ | ||
new Combine([ | ||
new Combine([back, ...leftContents]).SetClass("sticky top-4"), | ||
]).SetClass("ml-4 block w-full md:w-2/6 lg:w-1/6"), | ||
mainContent.SetClass("m-8 w-full mb-24") | ||
]) | ||
this.SetClass("h-full block md:flex") | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.