Sha256: 80503d46d80b3f3ad3cf5bbd4a7579e27507ef42aba1f0772f3ddd1e2bb5c673

Contents?: true

Size: 1.73 KB

Versions: 16

Compression:

Stored size: 1.73 KB

Contents

/*!
 * Angular Material Design
 * https://github.com/angular/material
 * @license MIT
 * v0.7.0-rc3
 */
(function() {
'use strict';

/**
 * @ngdoc module
 * @name material.components.list
 * @description
 * List module
 */
angular.module('material.components.list', [
  'material.core'
])
  .directive('mdList', mdListDirective)
  .directive('mdItem', mdItemDirective);

/**
 * @ngdoc directive
 * @name mdList
 * @module material.components.list
 *
 * @restrict E
 *
 * @description
 * The `<md-list>` directive is a list container for 1..n `<md-item>` tags.
 *
 * @usage
 * <hljs lang="html">
 * <md-list>
 *   <md-item ng-repeat="item in todos">
 *     <md-item-content>
 *       <div class="md-tile-left">
 *         <img ng-src="{{item.face}}" class="face" alt="{{item.who}}">
 *       </div>
 *       <div class="md-tile-content">
 *         <h3>{{item.what}}</h3>
 *         <h4>{{item.who}}</h4>
 *         <p>
 *           {{item.notes}}
 *         </p>
 *       </div>
 *     </md-item-content>
 *   </md-item>
 * </md-list>
 * </hljs>
 *
 */
function mdListDirective() {
  return {
    restrict: 'E',
    link: function($scope, $element, $attr) {
      $element.attr({
        'role' : 'list'
      });
    }
  };
}

/**
 * @ngdoc directive
 * @name mdItem
 * @module material.components.list
 *
 * @restrict E
 *
 * @description
 * The `<md-item>` directive is a container intended for row items in a `<md-list>` container.
 *
 * @usage
 * <hljs lang="html">
 *  <md-list>
 *    <md-item>
 *            Item content in list
 *    </md-item>
 *  </md-list>
 * </hljs>
 *
 */
function mdItemDirective() {
  return {
    restrict: 'E',
    link: function($scope, $element, $attr) {
      $element.attr({
        'role' : 'listitem'
      });
    }
  };
}
})();

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
sw2at-ui-0.0.16 app/assets/javascripts/swat/bower_components/angular-material/modules/js/list/list.js
sw2at-ui-0.0.15 app/assets/javascripts/swat/bower_components/angular-material/modules/js/list/list.js
sw2at-ui-0.0.14 app/assets/javascripts/swat/bower_components/angular-material/modules/js/list/list.js
sw2at-ui-0.0.13 app/assets/javascripts/swat/bower_components/angular-material/modules/js/list/list.js
sw2at-ui-0.0.12 app/assets/javascripts/swat/bower_components/angular-material/modules/js/list/list.js
sw2at-ui-0.0.11 app/assets/javascripts/swat/bower_components/angular-material/modules/js/list/list.js
sw2at-ui-0.0.10 app/assets/javascripts/swat/bower_components/angular-material/modules/js/list/list.js
sw2at-ui-0.0.9 app/assets/javascripts/swat/bower_components/angular-material/modules/js/list/list.js
sw2at-ui-0.0.8 app/assets/javascripts/swat/bower_components/angular-material/modules/js/list/list.js
sw2at-ui-0.0.7 app/assets/javascripts/swat/bower_components/angular-material/modules/js/list/list.js
sw2at-ui-0.0.6 app/assets/javascripts/swat/bower_components/angular-material/modules/js/list/list.js
sw2at-ui-0.0.5 app/assets/javascripts/swat/bower_components/angular-material/modules/js/list/list.js
sw2at-ui-0.0.4 app/assets/javascripts/swat/bower_components/angular-material/modules/js/list/list.js
sw2at-ui-0.0.3 app/assets/javascripts/swat/bower_components/angular-material/modules/js/list/list.js
sw2at-ui-0.0.2 app/assets/javascripts/swat/bower_components/angular-material/modules/js/list/list.js
sw2at-ui-0.0.1 app/assets/javascripts/swat/bower_components/angular-material/modules/js/list/list.js