Open prodhan29 opened 4 years ago
@redoy11, continuing with the discussion we had today(Tue, Jan 7th 2020), The js-tools
header breadcrumb component does not provide the logic required to generate the breadcrumb from this data and also some functionality I have seen that is needed in this breadcrumbs, like the drop-down. Also the helper function written for MIECD, here: will not work for this issue because of the difference in the data schema used to build the breadcrumb component.
sample view.
sample data .
{ "c768ef20-01fe-4877-b670-9b6570be17be": { "id": "c768ef20-01fe-4877-b670-9b6570be17be", "label": "BANGLADESH", "node": { "locationId": "c768ef20-01fe-4877-b670-9b6570be17be", "name": "BANGLADESH", "tags": [ "Country" ], "voided": false }, "children": { "e380918b-c409-40c0-a426-58ccc4411d53": { "id": "e380918b-c409-40c0-a426-58ccc4411d53", "label": "DHAKA", "node": { "locationId": "e380918b-c409-40c0-a426-58ccc4411d53", "name": "DHAKA", "parentLocation": { "locationId": "c768ef20-01fe-4877-b670-9b6570be17be", "name": "BANGLADESH", "voided": false }, "tags": [ "Clinic" ], "voided": false }, "children": { "39e17f2c-4bea-4f58-adc6-9f035fe56ce7": { "id": "39e17f2c-4bea-4f58-adc6-9f035fe56ce7", "label": "NARSINGDI", "node": { "locationId": "39e17f2c-4bea-4f58-adc6-9f035fe56ce7", "name": "NARSINGDI", "parentLocation": { "locationId": "e380918b-c409-40c0-a426-58ccc4411d53", "name": "DHAKA", "parentLocation": { "locationId": "c768ef20-01fe-4877-b670-9b6570be17be", "name": "BANGLADESH", "voided": false }, "voided": false }, "tags": [ "CHSS" ], "voided": false } } } } } } }