TableList widget
This sample demonstrates how to edit using the TableList widget. In this example, two FeatureLayer tables are displayed in this widget. One table is saved within a WebMap, while the other is added dynamically in the app by calling the fromPortalItem method and passing in the item
of the associated hosted table.
The widget takes a map property which contains a collection of tables. The tables are read as a collection of layers. In order for the widget to recognize if a table is valid, the feature layer's isTable property must return true
.
If a table is loaded dynamically, it must first be loaded and added to the map's tables collection. The following snippet shows how this is handled.
When instantiating the widget, pass in a valid Map. In this case, we are setting it to a WebMap containing a feature layer table.
Known Limitations
The FeatureTable is still in Beta and new capabilities will be added in upcoming releases. For a more comprehensive list of limitations, please refer to the FeatureTable widget's API Reference documentation.