Currently the API request for header_names return a JS array of strings. I have updated the PHP API and the capp app to use an object:
{ name: post_parent, type: bigint(20) }
We can include an extra meta in the future. I did this so we have the type in scope for both calculating columns widths (ints don't need to be very wide, datatime can be fixed etc) and also when editing a row's column, we need to know the datatype to decide whether to edit inline, or a modal (like when you edit a "text" row column in sequel pro).
Currently the API request for
header_names
return a JS array of strings. I have updated the PHP API and the capp app to use an object:We can include an extra meta in the future. I did this so we have the type in scope for both calculating columns widths (
int
s don't need to be very wide,datatime
can be fixed etc) and also when editing a row's column, we need to know the datatype to decide whether to edit inline, or a modal (like when you edit a "text" row column in sequel pro).