Created
June 28, 2021 04:41
-
-
Save rbro112/e3d924c73d61d7803b33a1ec6d119b1b to your computer and use it in GitHub Desktop.
A sample of the GP ILayout schema.
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
interface ILayout {} | |
type SectionDetail { | |
# References a SectionContainer in the GPResponse.sections array | |
sectionId: String | |
# Styling data | |
topPadding: Int | |
bottomPadding: Int | |
# ... Other styling data (margins, borders, etc) | |
} | |
# A placement meat to display a single GP section | |
type SingleSectionPlacement { | |
sectionDetail: SectionDetail! | |
} | |
# A placement meat to display multiple GP sections in the order they appear in the sectionDetails array | |
type MultipleSectionsPlacement { | |
sectionDetails: [SectionDetail]! | |
} | |
# A layout implementation defines the placements that sections are inserted into. | |
type SingleColumnLayout implements ILayout { | |
nav: SingleSectionPlacement | |
main: MultipleSectionsPlacement | |
floatingFooter: SingleSectionPlacement | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment