Skip to content

How to create JSON table with some default values in it ? #1

Open
@seAfnan

Description

@seAfnan

I want to create table with some column names and rows data initially. Afterward i will Edit and insert more columns and rows. Instead of empty table, i have some data initially. Can you please guide me how i can do this ?
I have tried this code but its not working.
new JSONTableEditor('#t1_editorDiv', { "meta": { "rows": 2, "columns": 2 }, "data": [ [ { "content": "Narendra Modi", "format": { "align": "right", "italic": true } }, { "content": "Manmohan Singh", "format": { "align": "right", "italic": true } } ], [ { "content": "55", "format": {} }, { "content": "65", "format": {} } ] ] });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions