{
  "name": "Table::ColumnOptions",
  "header": "nativeui/table.h",
  "type": "table",
  "namespace": "nu",
  "description": "Options for columns of Table.",
  "properties": [
    {
      "optional": true,
      "description": "The `type` of column, which decides how table cells are rendered.",
      "detail": "By default the column renders readonly text.",
      "id": "type",
      "type": {
        "name": "Table::ColumnType",
        "id": "table_columntype"
      },
      "name": "type"
    },
    {
      "optional": true,
      "description": "If the `type` is `Custom`, this function will be used for renderering\ntable cells under the column.\n",
      "detail": "\nThe function will be called with `ondraw(painter, rect, value)`.",
      "id": "ondraw",
      "type": {
        "name": "function"
      },
      "name": "ondraw"
    },
    {
      "optional": true,
      "description": "Which `column` of table model to show.",
      "detail": "By default the index of table's newly-added column will be used.",
      "id": "column",
      "type": {
        "name": "integer"
      },
      "name": "column"
    },
    {
      "optional": true,
      "description": "Initial width of column.",
      "detail": "Using -1 will use auto-size. By default -1 is used.\n\nOn Linux setting the width of last column does not work, it always resizes\nto fill the space. It is recommended to use -1 for last column to have\nconsistent behavior between platforms.\n",
      "id": "width",
      "type": {
        "name": "integer"
      },
      "name": "width"
    }
  ],
  "id": "table_columnoptions"
}