all files / addon/components/ polaris-resource-list.js

100% Statements 0/0
100% Branches 0/0
100% Functions 0/0
100% Lines 0/0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36                                                                       
import Component from '@ember/component';
import layout from '../templates/components/polaris-resource-list';
 
/**
 * Polaris resource list component.
 * See https://polaris.shopify.com/components/lists/resource-list
 */
export default Component.extend({
  tagName: 'ul',
  classNames: ['Polaris-ResourceList'],
 
  layout,
 
  /*
   * Public attributes.
   */
  /**
   * Item data; each item is rendered using the itemComponent below
   *
   * @property items
   * @type {Array}
   * @default null
   */
  items: null,
 
  /**
   * Component to render each item
   *
   * @property itemComponent
   * @type {function}
   * @default 'polaris-resource-list/item'
   */
  itemComponent: 'polaris-resource-list/item',
});