7,2%
$129,920
Last Month
0,6%
$14,293
Today
0,8%
$190,250
Last Week
3,2%
$10,250
Last Hour
Fast21 80%
Eco Newmars 70%
Best Niket 60%
Real Five 40%

Extended

Extended functions

Name Stars Forks Description Action

Name Stars Forks Description Action
$(function () {
  var $table = $('#extended_table');
  $('#export_toolbar').find('select').change(function () {
    $table.bootstrapTable('refreshOptions', {
      exportDataType: $(this).val()    
    });
  });
});
      
// Disabled checkbox
function stateFormatter(value, row, index) {
  if (index === 2) {
    return {
      disabled: true
    };
  }
  if (index === 0) {
    return {
      disabled: true,
      checked: true
    }
  }
  return value;
}

// Pagination
function queryParams() {
  return {
    type: 'owner',
    sort: 'updated',
    direction: 'desc'
  };
}

// Expands format
function nameFormatter(value) {
  return '' + value + '';
}
function starsFormatter(value) {
    return ' ' + value;
}
function forksFormatter(value) {
    return ' ' + value;
}

// Column events
function actionFormatter(value, row, index) {
  return [
      '',
      '',
      '',
      ''
  ].join('');
}

// Alerts (Like and Remove buttons)
window.actionEvents = {
  'click .like': function (e, value, row, index) {
    alert('You click like icon, row: ' + JSON.stringify(row));
    console.log(value, row, index);
  },
  'click .remove': function (e, value, row, index) {
    alert('You click remove icon, row: ' + JSON.stringify(row));
    console.log(value, row, index);
    $(this).closest ('tr').remove ();
  }
};

Editable

Name Stars Forks Description

Name Stars Forks Description
$('#edit_table').bootstrapTable();