Skip to content

Instantly share code, notes, and snippets.

@rbro112
Created June 28, 2021 04:41
Show Gist options
  • Save rbro112/e3d924c73d61d7803b33a1ec6d119b1b to your computer and use it in GitHub Desktop.
Save rbro112/e3d924c73d61d7803b33a1ec6d119b1b to your computer and use it in GitHub Desktop.
A sample of the GP ILayout schema.
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