- This topic has 3 replies, 2 voices, and was last updated 11 years, 2 months ago by support-octavio.
-
AuthorPosts
-
lemorlennyMemberHi,
I would like to generate a list from a database, my problem is how create a custom layout for every element of the list.
My workflow:
-I create a list in design center.
-place image and text with colors and fonts how I like.
-save and start the .mobj created.
-open the html page generated and copy the <li>….</li> code area to retrieve syntax and css class name.
-create a function where in a for() cicle add some <li> element for all records I have ($(list).append(…..) replacing the
list element, in the pasted code snippet, with my records fields.The list result correctly filled with right data but the layout is not how expected.
I respect all css class name and syntax but the font size and colors isn’t the same of the ‘static’ version layout.It’s the right manner to do this?
I hope to be clear.
Regards
support-octavioMemberHi lemorlenny,
>The list result correctly filled with right data but the layout is not how expected.
Can you post an screenshot of the result? Also, a mock up of how it should look would be helpful.>It’s the right manner to do this?
Seems you’re doing it good, but I assume you have missed something. I can’t say without seeing code, please take a look at this example that I think will be helpful for you, since uses the same logic to populate the list:Attachments:
You must be logged in to view attached files.
lemorlennyMember@support-octavio wrote:
Hi lemorlenny,
>The list result correctly filled with right data but the layout is not how expected.
Can you post an screenshot of the result? Also, a mock up of how it should look would be helpful.>It’s the right manner to do this?
Seems you’re doing it good, but I assume you have missed something. I can’t say without seeing code, please take a look at this example that I think will be helpful for you, since uses the same logic to populate the list:Thanks for your reply, now I need to analize your example expecially the use of ‘clone’ method.
Regards.
support-octavioMemberHi lemorlenny,
I thought that was the way you were doing it, you might find simpler this other example: https://www.genuitec.com/support-genuitec/viewtopic.php?f=14&t=1386
-
AuthorPosts