Skip to main content
Version: 0.4.3

MixinDataRoute

ClassExtensionSource

mixin = MixinDataRoute()

Mixin of providing data routing functionalities.

Methods

compare_routes

flag: bool = mixin.compare_routes(route_1: Route, route_2: Route)

Compare two different routes, where Route is provided by selected_path.

The comparison results will not change if the arguments are swapped. This method is used for checking whether route_1 and route_2 point to the same location.

To find more details about the arguments, see DashJsonGrid.


get_data_by_route

data_selected: Any = mixin.get_data_by_route(data: Any, route: Route)

Get the small part of the data by a specific route.

To find more details about the arguments, see DashJsonGrid.


update_data_by_route

data: Any = mixin.update_data_by_route(data: Any, route: Route, val: Any)

Update a specific part of data by a route.

If the update fails (for example, maybe the data is immutable), raise a ValueError.

To find more details about the arguments, see DashJsonGrid.


delete_data_by_route

data_selected: Any = mixin.delete_data_by_route(data: Any, route: Route)

Delete the data part specified by a route.

If the deletion fails (for example, maybe the data is immutable), raise a ValueError.

To find more details about the arguments, see DashJsonGrid.