Skip to content
This repository was archived by the owner on Nov 2, 2020. It is now read-only.
This repository was archived by the owner on Nov 2, 2020. It is now read-only.

Add a table type to a JSON editor #48

@chengtie

Description

@chengtie

I would like to add a Table type along with the existing types (e.g., Text, Boolean), so that users could fill in a table and add it to the JSON object:

screen shot 2017-01-07 at 01 02 22

By adding the following code in addItemTemplate (and some other code) in directives.js, it does show the above table. But I don't know how to do the rest, i.e., adding the instance to the JSON object after pressing the Add button. Note that we could get the data of a handsontable instance from its hot-id like this.

`+ '<span ng-show="$parent.valueType == \'' +tableName+'\'"> : 
 <div ng-controller="MainCtrl as ctrl"><hot-table hot-id="mytable" datarows="ctrl.db.items" height="50" width="100"></hot-table></div>'`

Could anyone give me some hint?

Thanks

Tie

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions