-
What I am trying to doI have date information stored in a simple object column as an iso-formatted string. I would like to place this date in it's own column and be able to sort that column. What I am tryingI am adding a custom formatter method to set the data for the cell.
Here is the get_date method:
What is going wrongEverything gets assigned and sorted appropriately, but the
CloneHere is the clone. The only forms that is of relevance is the startup "Tabulator" Form. No other form in the clone is used to display this issue. QuestionIs there a reason |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I don't think it's a bug. You're setting the value of the cell, which is then going to try and format the value. Which is then going to set the value of the cell, which is then... I assume if you set the second parameter in A custom sorter might work. I think you can also change the field to: {"title":"Date","field":"object.date","formatter":self.get_date} and that'll probably eliminate the need for a custom sorter. |
Beta Was this translation helpful? Give feedback.
I don't think it's a bug. You're setting the value of the cell, which is then going to try and format the value. Which is then going to set the value of the cell, which is then...
I assume if you set the second parameter in
setValue
to False it also throws a recursion error?A custom sorter might work.
I think you can also change the field to:
and that'll probably eliminate the need for a custom sorter.