Results 1 to 2 of 2
  1. mosdl's Avatar
    Posts
    781 Posts
    Global Posts
    787 Global Posts
       #1  
    Anyone have any idea how to debug why a:

    <div id="atHomeList" x-mojo-element="List"></div>

    doesn't show up when I set it up via:

    this.template = {itemTemplate: 'main/listitem', listTemplate: 'main/listcontainer', addItemLabel: "Add", swipeToDelete:true};

    var model = {listTitle: "foo", items: [{title: "1"}, {title: "2"}]};
    this.controller.setupWidget('atHomeList', this.template, model);

    The list container doesn't even render. I'm following the List UI sample. Not seeing any exceptions, and I applied the doctype "fix" that people mentioned. The div containing the list has a height of 0 after all is done.

    Any suggestions what could be wrong? listcontainer.html is at app\views\main\
  2. mosdl's Avatar
    Posts
    781 Posts
    Global Posts
    787 Global Posts
       #2  
    figured it out - you can't call setupwidget after the assistant's setup() has been called.

Posting Permissions