var myFeatureTable = new FeatureTable({
"featureLayer" : myFeatureLayer,
"syncSelection" : true,
"zoomToSelection" : true,
"outFields": [
"OBJECTID", "Shape", "Name", "Tag"
],
fieldInfos: [
{
name: 'OBJECTID',
alias: 'id',
},
{
name: 'Shape',
alias: 'Tipo de geometría',
},
{
name: 'Name',
alias: 'Nombre',
}
],
"map" : map
}, 'myTableNode');
and my div
<div id="myTableNode"></div>
¿how to convert in table with tabletools api?
I have never heard of table tools api and I am not clear on what your question is.
Hi, robert
Why does my table appear like this?
Marina,
I would have to see your code but it looks like you have a css issue. Have you you added a link to your code for one of the dojo dijit theme (like claro)?
yes,
<link rel="stylesheet" href="https://js.arcgis.com/3.16/dijit/themes/claro/claro.css">
the problem is because I dont use dojo's
<div id="dialog" title="Basic dialog" style="display:none">
<div id="myTableNode"></div>
</div>
Marina,
If you take this sample in the sanbox and comment out the claro theme it looks a little like what you are seeing:
ArcGIS API for JavaScript Sandbox
So that leads me to believe that you FeatureTable is not getting the claro css rules.