Grouper.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>The source code</title>
  6. <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  7. <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  8. <style type="text/css">
  9. .highlight { display: block; background-color: #ddd; }
  10. </style>
  11. <script type="text/javascript">
  12. function highlight() {
  13. document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
  14. }
  15. </script>
  16. </head>
  17. <body onload="prettyPrint(); highlight();">
  18. <pre class="prettyprint lang-js"><span id='Ext-util-Grouper'>/**
  19. </span> * @class Ext.util.Grouper
  20. Represents a single grouper that can be applied to a Store. The grouper works
  21. in the same fashion as the {@link Ext.util.Sorter}.
  22. * @markdown
  23. */
  24. Ext.define('Ext.util.Grouper', {
  25. /* Begin Definitions */
  26. extend: 'Ext.util.Sorter',
  27. /* End Definitions */
  28. isGrouper: true,
  29. <span id='Ext-util-Grouper-method-getGroupString'> /**
  30. </span> * Returns the value for grouping to be used.
  31. * @param {Ext.data.Model} instance The Model instance
  32. * @return {String} The group string for this model
  33. */
  34. getGroupString: function(instance) {
  35. return instance.get(this.property);
  36. }
  37. });</pre>
  38. </body>
  39. </html>