angular 4 - how to display json array in vertical fashion





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







1















From backend I am getting json array of say Notes (one json is one Note) i.e



 [
{
"StrategyName": "ClearBridge Aggresive Growth fund",
"ProductType": "MF",
"FirmName": "ABC",
"Complement": "",
"TakeOver": "",
"PlatformFirm": "",
"PlatformName": "",
"topics": [
{
"title": "Strategy/Objective",
"text": "System to allow Owner modify product notes and save as a new note."
},
{
"title": "People",
"text": "This allows Owner to quickly create a note for different vehicle types by cloning the existing, This allows Owner to quickly create a note for different vehicle types by cloning the existing, This allows Owner to quickly create a note for different vehicle types by cloning the existing"
},
{
"title": "Philosophy/Process",
"text": "Process content"
},
{
"title": "Roles",
"text": "Currently has 40% foreign exposure"
},
{
"title": "Positioning",
"text": " test Positioning content "
},
{
"title": "Composition",
"text": " test Composition content "
},
{
"title": "Performance",
"text": " test Performance content "
},
{
"title": "Current Allocation",
"text": "Current Allocation "
},
{
"title": "Miscellaneous",
"text": "Miscellaneous Content "
}
]
},
{
"StrategyName": "JhanCock Global absolute Ret",
"ProductType": "MF",
"FirmName": "BCD",
"Complement": "",
"TakeOver": "",
"PlatformFirm": "",
"PlatformName": "",
"topics": [
{
"title": "Strategy/Objective",
"text": "test strategy"
},
{
"title": "People",
"text": "test people"
},
{
"title": "Philosophy/Process",
"text": "Process content"
},
{
"title": "Roles",
"text": "Currently has 30% foreign exposure"
},
{
"title": "Positioning",
"text": " test Positioning content 2 "
},
{
"title": "Composition",
"text": " test Composition content 2 "
},
{
"title": "Performance",
"text": " test Performance content 2 "
},
{
"title": "Current Allocation",
"text": "Current Allocation 2 "
},
{
"title": "Miscellaneous",
"text": "Miscellaneous Content 2 "
}
]
}
]


In angular I am using MaterialTable . I am able to display one note in one row.



Name, FundType, FirmName, topic1, topic2, topic3 (Header row)



ClearBridge Aggresive Growth fund,MF,ABC,topic1, topic2 , topic3 ..



JhanCock Global absolute Ret,MF,BCD, topic1, topic2, topic3..



But requirement is to display in vertical fashion



Name - ClearBridge Aggresive Growth fund , JhanCock Global absolute Ret



FundType - MF , MF



FirmName - ABC , BCD



topic1 - topic1 , topic1



topic2 - topic2 , topic2



topic3 - topic3, topic3



Data is array of Note i.e Note (in materialtable , this.dataSource.data = data as Notes;)
I was looking to create another array of say NoteDisplay . NotDisplay will have data in vertical fashion.
Please guide if any other approach can work ?










share|improve this question

























  • what have you tried so far

    – Stavm
    Nov 16 '18 at 16:52











  • material-table is most fit with modified data for display. saw multiline list, but it will be coming in one column only (one after another) it looks, it will not fit here.

    – Manoj Kumar Dewangan
    Nov 16 '18 at 17:13




















1















From backend I am getting json array of say Notes (one json is one Note) i.e



 [
{
"StrategyName": "ClearBridge Aggresive Growth fund",
"ProductType": "MF",
"FirmName": "ABC",
"Complement": "",
"TakeOver": "",
"PlatformFirm": "",
"PlatformName": "",
"topics": [
{
"title": "Strategy/Objective",
"text": "System to allow Owner modify product notes and save as a new note."
},
{
"title": "People",
"text": "This allows Owner to quickly create a note for different vehicle types by cloning the existing, This allows Owner to quickly create a note for different vehicle types by cloning the existing, This allows Owner to quickly create a note for different vehicle types by cloning the existing"
},
{
"title": "Philosophy/Process",
"text": "Process content"
},
{
"title": "Roles",
"text": "Currently has 40% foreign exposure"
},
{
"title": "Positioning",
"text": " test Positioning content "
},
{
"title": "Composition",
"text": " test Composition content "
},
{
"title": "Performance",
"text": " test Performance content "
},
{
"title": "Current Allocation",
"text": "Current Allocation "
},
{
"title": "Miscellaneous",
"text": "Miscellaneous Content "
}
]
},
{
"StrategyName": "JhanCock Global absolute Ret",
"ProductType": "MF",
"FirmName": "BCD",
"Complement": "",
"TakeOver": "",
"PlatformFirm": "",
"PlatformName": "",
"topics": [
{
"title": "Strategy/Objective",
"text": "test strategy"
},
{
"title": "People",
"text": "test people"
},
{
"title": "Philosophy/Process",
"text": "Process content"
},
{
"title": "Roles",
"text": "Currently has 30% foreign exposure"
},
{
"title": "Positioning",
"text": " test Positioning content 2 "
},
{
"title": "Composition",
"text": " test Composition content 2 "
},
{
"title": "Performance",
"text": " test Performance content 2 "
},
{
"title": "Current Allocation",
"text": "Current Allocation 2 "
},
{
"title": "Miscellaneous",
"text": "Miscellaneous Content 2 "
}
]
}
]


In angular I am using MaterialTable . I am able to display one note in one row.



Name, FundType, FirmName, topic1, topic2, topic3 (Header row)



ClearBridge Aggresive Growth fund,MF,ABC,topic1, topic2 , topic3 ..



JhanCock Global absolute Ret,MF,BCD, topic1, topic2, topic3..



But requirement is to display in vertical fashion



Name - ClearBridge Aggresive Growth fund , JhanCock Global absolute Ret



FundType - MF , MF



FirmName - ABC , BCD



topic1 - topic1 , topic1



topic2 - topic2 , topic2



topic3 - topic3, topic3



Data is array of Note i.e Note (in materialtable , this.dataSource.data = data as Notes;)
I was looking to create another array of say NoteDisplay . NotDisplay will have data in vertical fashion.
Please guide if any other approach can work ?










share|improve this question

























  • what have you tried so far

    – Stavm
    Nov 16 '18 at 16:52











  • material-table is most fit with modified data for display. saw multiline list, but it will be coming in one column only (one after another) it looks, it will not fit here.

    – Manoj Kumar Dewangan
    Nov 16 '18 at 17:13
















1












1








1








From backend I am getting json array of say Notes (one json is one Note) i.e



 [
{
"StrategyName": "ClearBridge Aggresive Growth fund",
"ProductType": "MF",
"FirmName": "ABC",
"Complement": "",
"TakeOver": "",
"PlatformFirm": "",
"PlatformName": "",
"topics": [
{
"title": "Strategy/Objective",
"text": "System to allow Owner modify product notes and save as a new note."
},
{
"title": "People",
"text": "This allows Owner to quickly create a note for different vehicle types by cloning the existing, This allows Owner to quickly create a note for different vehicle types by cloning the existing, This allows Owner to quickly create a note for different vehicle types by cloning the existing"
},
{
"title": "Philosophy/Process",
"text": "Process content"
},
{
"title": "Roles",
"text": "Currently has 40% foreign exposure"
},
{
"title": "Positioning",
"text": " test Positioning content "
},
{
"title": "Composition",
"text": " test Composition content "
},
{
"title": "Performance",
"text": " test Performance content "
},
{
"title": "Current Allocation",
"text": "Current Allocation "
},
{
"title": "Miscellaneous",
"text": "Miscellaneous Content "
}
]
},
{
"StrategyName": "JhanCock Global absolute Ret",
"ProductType": "MF",
"FirmName": "BCD",
"Complement": "",
"TakeOver": "",
"PlatformFirm": "",
"PlatformName": "",
"topics": [
{
"title": "Strategy/Objective",
"text": "test strategy"
},
{
"title": "People",
"text": "test people"
},
{
"title": "Philosophy/Process",
"text": "Process content"
},
{
"title": "Roles",
"text": "Currently has 30% foreign exposure"
},
{
"title": "Positioning",
"text": " test Positioning content 2 "
},
{
"title": "Composition",
"text": " test Composition content 2 "
},
{
"title": "Performance",
"text": " test Performance content 2 "
},
{
"title": "Current Allocation",
"text": "Current Allocation 2 "
},
{
"title": "Miscellaneous",
"text": "Miscellaneous Content 2 "
}
]
}
]


In angular I am using MaterialTable . I am able to display one note in one row.



Name, FundType, FirmName, topic1, topic2, topic3 (Header row)



ClearBridge Aggresive Growth fund,MF,ABC,topic1, topic2 , topic3 ..



JhanCock Global absolute Ret,MF,BCD, topic1, topic2, topic3..



But requirement is to display in vertical fashion



Name - ClearBridge Aggresive Growth fund , JhanCock Global absolute Ret



FundType - MF , MF



FirmName - ABC , BCD



topic1 - topic1 , topic1



topic2 - topic2 , topic2



topic3 - topic3, topic3



Data is array of Note i.e Note (in materialtable , this.dataSource.data = data as Notes;)
I was looking to create another array of say NoteDisplay . NotDisplay will have data in vertical fashion.
Please guide if any other approach can work ?










share|improve this question
















From backend I am getting json array of say Notes (one json is one Note) i.e



 [
{
"StrategyName": "ClearBridge Aggresive Growth fund",
"ProductType": "MF",
"FirmName": "ABC",
"Complement": "",
"TakeOver": "",
"PlatformFirm": "",
"PlatformName": "",
"topics": [
{
"title": "Strategy/Objective",
"text": "System to allow Owner modify product notes and save as a new note."
},
{
"title": "People",
"text": "This allows Owner to quickly create a note for different vehicle types by cloning the existing, This allows Owner to quickly create a note for different vehicle types by cloning the existing, This allows Owner to quickly create a note for different vehicle types by cloning the existing"
},
{
"title": "Philosophy/Process",
"text": "Process content"
},
{
"title": "Roles",
"text": "Currently has 40% foreign exposure"
},
{
"title": "Positioning",
"text": " test Positioning content "
},
{
"title": "Composition",
"text": " test Composition content "
},
{
"title": "Performance",
"text": " test Performance content "
},
{
"title": "Current Allocation",
"text": "Current Allocation "
},
{
"title": "Miscellaneous",
"text": "Miscellaneous Content "
}
]
},
{
"StrategyName": "JhanCock Global absolute Ret",
"ProductType": "MF",
"FirmName": "BCD",
"Complement": "",
"TakeOver": "",
"PlatformFirm": "",
"PlatformName": "",
"topics": [
{
"title": "Strategy/Objective",
"text": "test strategy"
},
{
"title": "People",
"text": "test people"
},
{
"title": "Philosophy/Process",
"text": "Process content"
},
{
"title": "Roles",
"text": "Currently has 30% foreign exposure"
},
{
"title": "Positioning",
"text": " test Positioning content 2 "
},
{
"title": "Composition",
"text": " test Composition content 2 "
},
{
"title": "Performance",
"text": " test Performance content 2 "
},
{
"title": "Current Allocation",
"text": "Current Allocation 2 "
},
{
"title": "Miscellaneous",
"text": "Miscellaneous Content 2 "
}
]
}
]


In angular I am using MaterialTable . I am able to display one note in one row.



Name, FundType, FirmName, topic1, topic2, topic3 (Header row)



ClearBridge Aggresive Growth fund,MF,ABC,topic1, topic2 , topic3 ..



JhanCock Global absolute Ret,MF,BCD, topic1, topic2, topic3..



But requirement is to display in vertical fashion



Name - ClearBridge Aggresive Growth fund , JhanCock Global absolute Ret



FundType - MF , MF



FirmName - ABC , BCD



topic1 - topic1 , topic1



topic2 - topic2 , topic2



topic3 - topic3, topic3



Data is array of Note i.e Note (in materialtable , this.dataSource.data = data as Notes;)
I was looking to create another array of say NoteDisplay . NotDisplay will have data in vertical fashion.
Please guide if any other approach can work ?







angular angular-material mat-table






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 16 '18 at 16:45







Manoj Kumar Dewangan

















asked Nov 16 '18 at 16:40









Manoj Kumar DewanganManoj Kumar Dewangan

162




162













  • what have you tried so far

    – Stavm
    Nov 16 '18 at 16:52











  • material-table is most fit with modified data for display. saw multiline list, but it will be coming in one column only (one after another) it looks, it will not fit here.

    – Manoj Kumar Dewangan
    Nov 16 '18 at 17:13





















  • what have you tried so far

    – Stavm
    Nov 16 '18 at 16:52











  • material-table is most fit with modified data for display. saw multiline list, but it will be coming in one column only (one after another) it looks, it will not fit here.

    – Manoj Kumar Dewangan
    Nov 16 '18 at 17:13



















what have you tried so far

– Stavm
Nov 16 '18 at 16:52





what have you tried so far

– Stavm
Nov 16 '18 at 16:52













material-table is most fit with modified data for display. saw multiline list, but it will be coming in one column only (one after another) it looks, it will not fit here.

– Manoj Kumar Dewangan
Nov 16 '18 at 17:13







material-table is most fit with modified data for display. saw multiline list, but it will be coming in one column only (one after another) it looks, it will not fit here.

– Manoj Kumar Dewangan
Nov 16 '18 at 17:13














0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53342055%2fangular-4-how-to-display-json-array-in-vertical-fashion%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53342055%2fangular-4-how-to-display-json-array-in-vertical-fashion%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Xamarin.iOS Cant Deploy on Iphone

Glorious Revolution

Dulmage-Mendelsohn matrix decomposition in Python