facebook

Customize list layout

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #342431 Reply

    lemorlenny
    Member

    Hi,
    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

    #342452 Reply

    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:

    Attachments:
    You must be logged in to view attached files.
    #342453 Reply

    lemorlenny
    Member

    @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.

    #342482 Reply

    Hi 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

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Customize list layout

You must be logged in to post in the forum log in