All the {{self}} in Column title were resolved to 0, I think it's a bug. It should be resolved to the index of column.
Hey @AnsonWang I don't know that there's a particular intended use value for {{self}}
in column titles at the moment. Are you trying to have the column be named by its index or is there something else you're looking to accomplish?
Yes, I am trying to have the column be named by its index
The .columns
property of your table is an object whose keys correspond to the index of each column and values correspond with their names. You can use this along with the lodash _.findKey
function to pull the corresponding index with something like:
{{_.findKey(table1.columns, v => v === "name")}}
Can you let us know if that works?\