jQuery DataTables AlphabetSearch: Localization
Example for https://www.gyrocode.com/projects/jquery-datatables-alphabetsearch/
by gyrocode
HTML
<link rel="stylesheet" href="https://cdn.datatables.net/v/dt/dt-1.10.15/datatables.min.css">
<script src="https://cdn.datatables.net/v/dt/dt-1.10.15/datatables.min.js"></script>
<link rel="stylesheet" href="https://gyrocode.github.io/jquery-datatables-alphabetSearch/1.2.7/css/dataTables.alphabetSearch.css">
<script src="https://gyrocode.github.io/jquery-datatables-alphabetSearch/1.2.7/js/dataTables.alphabetSearch.min.js"></script>
<h3><a target="_parent" href="https://www.gyrocode.com/projects/jquery-datatables-alphabetsearch/">jQuery DataTables AlphabetSearch:</a> <a target="_parent" href="https://www.gyrocode.com/projects/jquery-datatables-alphabetsearch/examples/basic/localization/">Localization</a></h3>
<table id="example" class="display" cellspacing="0" width="100%">
<thead>
<tr>
<th>Name</th>
<th>Position</th>
<th>Office</th>
<th>Extn</th>
<th>Start date</th>
<th>Salary</th>
</tr>
</thead>
<tfoot>
<tr>
<th>Name</th>
<th>Position</th>
<th>Office</th>
<th>Age</th>
<th>Start date</th>
<th>Salary</th>
</tr>
</tfoot>
</table>
<hr>
<a target="_parent" href="https://www.gyrocode.com/projects/jquery-datatables-alphabetsearch/">See full article on Gyrocode.com</a>
JavaScript
$(document).ready(function(){
var table = $('#example').DataTable({
ajax: 'https://gyrocode.github.io/files/jquery-datatables/arrays.json',
dom: 'Alfrtip',
alphabetSearch: {
column: 0
},
language: {
alphabetSearch: {
alphabet: '#АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ',
infoDisplay: 'Показать',
infoAll: 'Все'
}
}
});
});