Web UI component: j-Listing


  • Info
  • HTML
  • JS
  • CSS
  • Meta

j-Listing

  • easy usage
  • works with the whole Arrays only on client-side

Configuration:

  • count {Number} Optional, items per page (default: 20)
  • pages {Number} Optional, max pages in pagination (default: 3 --> half + current page + half)
  • scrolltop {Boolean} scrolls top automatically when the user changes a page
  • parent {String} jQuery selector for obtaining of height, enables fixed area with custom scrollbars
  • margin {Number} a margin for parent (default: 0)
  • NEW: marginxs {Number} optional, a top/bottom margin together for xs screen width
  • NEW: marginsm optional, a top/bottom margin together for sm screen width
  • NEW: marginmd optional, a top/bottom margin together for md screen width
  • NEW: marginlg optional, a top/bottom margin together for lg screen width

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