Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Welcome to Portal SDK. This document is intended to familiarize you with HTML, JavaScript and Server Script components of the SDK.

...

Code Block
languagexml
linenumberstrue
<widget-list list="item in model track by item.title" render="ready">
    <div class="item item-icon-right item-text-wrap">
        <b ng-bind-html="::item.title"></b>
        <p>
            <b>Details:</b> {{::item.details}}<br />
        </p>
        <i class="icon ion-chevron-right"></i>
    </div>
</widget-list>

Result (web)

Result (app)

To pass your model into the "widget-list" directive, use the "list" attribute. The syntax for the argument is the same as for angular’s "ng-repeat" directive.

...