I've a JSON structure as:
I've to show the dropdown as:
There will be some icon beside each of the 'name's. And by clicking the 'name's, the 'files' list will show and user can select a file. Selected value will be the file-id (like 123456789, 3248734567754 etc).
Can you please help?
$scope.fileList = [
{
name:
'340000SRF76'
,
files: [
'123456789'
,
'3248734567754'
]
},
{
name:
'340000EFG76'
,
files: [
'1238436589'
,
'3242334567754'
]
},
{
name:
'340000SHY76'
,
files: [
'123286789'
,
'324584567754'
]
}
];
I've to show the dropdown as:
340000SRF76
123456789
3248734567754
340000EFG76
1238436589
3242334567754
340000SHY76
123456789
324584567754
There will be some icon beside each of the 'name's. And by clicking the 'name's, the 'files' list will show and user can select a file. Selected value will be the file-id (like 123456789, 3248734567754 etc).
Can you please help?