Web component: j-ServerListing


  • Info
  • HTML
  • JS
  • CSS
  • Meta

j-ServerListing

  • easy usage

Configuration:

  • paginate(page) {String} link to a function for pagination
  • pages {Number} Optional, max pages in pagination (default: 3 --> half + current page + half)

Model:

The model must be in the format below:

{
    page: Number,
    count: Number,
    pages: Number,
    items: [{...}, {...}]
}

Tangular layout:

  • body {String} contains all rendered items, output is HTML
  • page {Number} current page number
  • pages {Number} count of pages
  • count {Number} count of items

Tangular item:

  • model contains an object from Array
  • second model contains info about data-source { index: Number, page: Number, pages: Number, count: Number }

Author

Browser‘s Save action performs Preview