DocumentTemplateComponentAttributes

The DocumentTemplateComponentAttributes input type in Bunny's GraphQL API, with its fields and an example.

{
  "id": "456123",
  "documentTemplateId": "456123",
  "kind": "DocumentTemplateComponentKind",
  "content": "",
  "font": "",
  "fontSize": "",
  "fontWeight": "",
  "alignment": "",
  "width": "",
  "height": "",
  "lineSpacing": "",
  "imageScale": "",
  "color": "",
  "background": "",
  "position": 123,
  "imageSignedId": "",
  "skipPages": true,
  "paddingTop": 123,
  "paddingBottom": 123,
  "paddingLeft": 123,
  "paddingRight": 123,
  "marginTop": 123,
  "marginBottom": 123,
  "marginLeft": 123,
  "marginRight": 123,
  "name": "",
  "twoColumns": true,
  "editableInQuoteBuilder": true
}
Name Type Description
id ID The ID of the component
documentTemplateId ID The ID of the template that the component belongs to
kind DocumentTemplateComponentKind The kind of the component
content String The content of the component
font String The font of the component
fontSize String The font size of the component
fontWeight String The font weight of the component
alignment String The alignment of the component
width String The width of the component
height String The height of the component
lineSpacing String The line spacing of the component
imageScale String The image scale of the component
color String The color of the component
background String The background of the component
position Int The position of the component in the template
imageSignedId String The signed_id for an image attachment
skipPages Boolean Number of pages to skip before header is shown
paddingTop Int The padding top of the component
paddingBottom Int The padding bottom of the component
paddingLeft Int The padding left of the component
paddingRight Int The padding right of the component
marginTop Int The margin top of the component
marginBottom Int The margin bottom of the component
marginLeft Int The margin left of the component
marginRight Int The margin right of the component
name String The label name of the component (e.g. used to name a paragraph)
twoColumns Boolean Whether to use two columns
editableInQuoteBuilder Boolean Whether the paragraph is editable in the quote builder