packages/cf-tables/src/TableSortable.js
function initialize() {
  this.sortClass = UNDEFINED;
  this.sortColumnIndex = UNDEFINED;
  this.sortDirection = UNDEFINED;
  this.tableData = [];
  this.bindProperties();
  if ( this.ui.sortButton ) {
    this.sortColumnIndex = this.getColumnIndex();

    this.sortDirection = DIRECTIONS.UP;
    if ( this.ui.sortButton.classList.contains( this.classes.sortDown ) ) {
      this.sortDirection = DIRECTIONS.DOWN;
    }

    this.updateTable();
  }
}
function initialize() {
  this.sortClass = UNDEFINED;
  this.sortColumnIndex = UNDEFINED;
  this.sortDirection = UNDEFINED;
  this.tableData = [];
  this.bindProperties();
  if ( this.ui.sortButton ) {
    this.sortColumnIndex = this.getColumnIndex();

    this.sortDirection = DIRECTIONS.UP;
    if ( this.ui.sortButton.classList.contains( this.classes.sortDown ) ) {
      this.sortDirection = DIRECTIONS.DOWN;
    }

    this.updateTable();
  }
}
function initialize ( ) { this . sortClass = UNDEFINED ; this . sortColumnIndex = UNDEFINED ; this . sortDirection = UNDEFINED ; this . tableData = [ ] ; this . bindProperties ( ) ; if ( this . ui . sortButton ) { this . sortColumnIndex = this . getColumnIndex ( ) ; this . sortDirection = DIRECTIONS . UP ; if ( this . ui . sortButton . classList . contains ( this . classes . sortDown ) ) { this . sortDirection = DIRECTIONS . DOWN ; } this . updateTable ( ) ; } }
Function used to create computed and triggered properties.
Function used to create computed and triggered properties .