07-26-2021, 06:40 PM
(This post was last modified: 07-26-2021, 06:40 PM by remkonoteboom.)
I think I understand what you are trying to do. You have a custom layout that contains UI elements that are in a table cell and you want to be able from that cell.
If that is indeed what you want to do, then all you need to do is set the spt_input_value attribute of the cell. This is what saving changes in a table looks for.
and then do the spt_cell_changed, spt_row_changed that you are doing.
This might be useful to have as a singular function.
spt.table.set_cell_value() or something like that.
If that is indeed what you want to do, then all you need to do is set the spt_input_value attribute of the cell. This is what saving changes in a table looks for.
Code:
var cell = el.getParent(".spt_edit_cell");
cell.setAttribute("spt_input_value", json_value);
and then do the spt_cell_changed, spt_row_changed that you are doing.
This might be useful to have as a singular function.
spt.table.set_cell_value() or something like that.