orfium-ictinus icon indicating copy to clipboard operation
orfium-ictinus copied to clipboard

Add new type of option data for each breadcrumb item in Breadcrumb Component

Open michalisKout opened this issue 4 years ago • 0 comments

The new data type should have one of the following structures:

data=[{
    label: "Breadcrumb level 1", 
    options: { 
     1: { label: 'Level 1 Item 1', data: {} }, 
     2: { label: 'Level 1 Item 2', data: {} } 
    }
  },
 {
    label: "Breadcrumb level 2", 
    options: { 
     1: { label: 'Level 2 - Item 1', data: {} }, 
     2: { label: 'Level 2 - Item 2, data: {} } 
 }
}]

or

data=[{
    label: "Breadcrumb level 1", 
    options: [ 
     { label: 'Level 1 Item 1', data: {}, id: 1 }, 
     { label: 'Level 1 Item 2', data: {}, id: 2 } 
    ]
  },
 {
    label: "Breadcrumb level 2", 
    options: [ 
     { label: 'Level 2 - Item 1', data: {}, id: 1 }, 
     { label: 'Level 2 - Item 2, data: {}, id: 2 } 
 ]
}]

michalisKout avatar Jun 29 '20 08:06 michalisKout