Lello1964 Well-Known Member Licensed User Longtime User May 21, 2022 #1 I've a string HTML text to display inside a Vcard using VLabel element, how show it ? Last edited: May 21, 2022
Mashiane Expert Licensed User Longtime User May 21, 2022 #2 Do you want it to be displayed as RAW HTML e.g. <div></div> on your label or you want the VLabel to display it in a proper formatted text? Upvote 0
Do you want it to be displayed as RAW HTML e.g. <div></div> on your label or you want the VLabel to display it in a proper formatted text?
Mashiane Expert Licensed User Longtime User May 21, 2022 #3 I'm not really sure whether this will work, anyway after BANano.LoadLayout. B4X: mylabel.AddAttr("v-html", "labelvariable") page.SetData("labelvariable", "<div></div>") Then at runtime B4X: page.SetData("labelvariable", "<strong>This should be bold!</strong>") Not tested... Upvote 0
I'm not really sure whether this will work, anyway after BANano.LoadLayout. B4X: mylabel.AddAttr("v-html", "labelvariable") page.SetData("labelvariable", "<div></div>") Then at runtime B4X: page.SetData("labelvariable", "<strong>This should be bold!</strong>") Not tested...
Lello1964 Well-Known Member Licensed User Longtime User May 21, 2022 #4 It work in single vCard but I've a V-for cycle with a list of map. Upvote 0
Mashiane Expert Licensed User Longtime User May 21, 2022 #5 To guide you properly 1. what is on the "v-for"? of the controlling loop? 2. what is the name of your label? Upvote 0
To guide you properly 1. what is on the "v-for"? of the controlling loop? 2. what is the name of your label?
Lello1964 Well-Known Member Licensed User Longtime User May 21, 2022 #6 v-for = articoli in listaselezione VLabel1 = label name Upvote 0
Mashiane Expert Licensed User Longtime User May 21, 2022 #7 What is the key value that will have the content you want to show on the label? Upvote 0
Mashiane Expert Licensed User Longtime User May 21, 2022 #9 In the abstract designer, locate VLabel1 > Attributes > v-html=articoli.html Update: use = and not : Upvote 0
Lello1964 Well-Known Member Licensed User Longtime User May 21, 2022 #10 page doesn't work. In attributes hint : Attributes added to the HTML tag. Must be a json String- use = Upvote 0
page doesn't work. In attributes hint : Attributes added to the HTML tag. Must be a json String- use =
Mashiane Expert Licensed User Longtime User May 21, 2022 #11 Mashiane said: Update: use = and not : Click to expand... I had edited my response already... please try again. Upvote 0
Mashiane said: Update: use = and not : Click to expand... I had edited my response already... please try again.