Socket
Socket
Sign inDemoInstall

datocms-plugin-complex-table-editor

Package Overview
Dependencies
18
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    datocms-plugin-complex-table-editor

A table editor that includes boolean and rich text editable cells


Version published
Maintainers
1
Created

Readme

Source

Dato CMS Feature Table Plugin

Built on top of a community table plugin to accommodate different table styles.

Each cell has the option to be either a rich text or checkbox field. However, the first column will always be set to rich text unless a column header is entered.

A row can optionally be collapsible by selecting "Make row collapsible" in the row's dropdown settings. This will add the row's index to the collapsibleRows JSON field.

Column headers can be hidden by clicking "Hide column headers button". This will change the hasColumnHeaders JSON field to false. However, the JSON output will still include column names as that is how the data is organized.

Usage:

Use this plugin as the presentation in any JSON field.

Output

{
  "collapsibleRows": [],
  "hasColumnHeaders": true,
  "columns": ["", "Col 1", "Col 2"],
  "data": [
    {
      "": { "heading": "Row 1", "content": "" },
      "Col 1": {
        "heading": "Sample Rich Text Heading",
        "content": "Sample Rich Text Content"
      },
      "Col 2": { "heading": "Sample Rich Text Heading", "content": "" }
    },
    {
      "": { "heading": "Row 2", "content": "" },
      "Col 1": false,
      "Col 2": true
    }
  ]
}

Keywords

FAQs

Last updated on 01 Mar 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc