Polotno
Design Format

CellBorders

Per-side border overrides for this cell.

Per-side border overrides for this cell.

Type Information

Base Type: object

Properties

PropertyTypeDescription
topBorderSideTop border override for this cell.
rightBorderSideRight border override for this cell.
bottomBorderSideBottom border override for this cell.
leftBorderSideLeft border override for this cell.

JSON Schema

{
  "description": "Per-side border overrides for this cell.",
  "type": "object",
  "properties": {
    "top": {
      "description": "Top border override for this cell.",
      "type": "object",
      "properties": {
        "color": {
          "description": "Border color for this side.",
          "type": "string"
        },
        "width": {
          "description": "Border width in pixels for this side.",
          "type": "number"
        },
        "style": {
          "description": "Border style for this side.",
          "type": "string",
          "enum": [
            "solid",
            "dashed",
            "dotted",
            "none"
          ]
        }
      }
    },
    "right": {
      "description": "Right border override for this cell.",
      "type": "object",
      "properties": {
        "color": {
          "description": "Border color for this side.",
          "type": "string"
        },
        "width": {
          "description": "Border width in pixels for this side.",
          "type": "number"
        },
        "style": {
          "description": "Border style for this side.",
          "type": "string",
          "enum": [
            "solid",
            "dashed",
            "dotted",
            "none"
          ]
        }
      }
    },
    "bottom": {
      "description": "Bottom border override for this cell.",
      "type": "object",
      "properties": {
        "color": {
          "description": "Border color for this side.",
          "type": "string"
        },
        "width": {
          "description": "Border width in pixels for this side.",
          "type": "number"
        },
        "style": {
          "description": "Border style for this side.",
          "type": "string",
          "enum": [
            "solid",
            "dashed",
            "dotted",
            "none"
          ]
        }
      }
    },
    "left": {
      "description": "Left border override for this cell.",
      "type": "object",
      "properties": {
        "color": {
          "description": "Border color for this side.",
          "type": "string"
        },
        "width": {
          "description": "Border width in pixels for this side.",
          "type": "number"
        },
        "style": {
          "description": "Border style for this side.",
          "type": "string",
          "enum": [
            "solid",
            "dashed",
            "dotted",
            "none"
          ]
        }
      }
    }
  }
}

On this page