Limit range of numeric value in Dash Datatable

#1

Hey guys,
I am using the Dash DataTable to create a spreasheet that invloves angles. I want to limit the input of angle from 0 to 360 degrees. Would that be possible? I was looking at the ‘format’ and ‘typing’ to see see if there is a way to specify the maximum value of the number, but could’nt have it figured.

Thanks,
Vivek

#2

I was thinking of something like this:

          style_data_conditional=[
                                        {
                                            "if": {
                                                "column_id": "road_angle1",
                                                "filter": "road_angle1 eq num(350)",
                                            },
                                            "backgroundColor": "#3D9970",
                                            "color": "white",
                                            "value": "320",
                                        }
                                    ],