How do I add bootstrap column widths to the search input box for datatables? Currently I have this:
$("#table_filter input").addClass('form-control input-lg col-xs-12');
However, that does not increase the width of the search input. So far all the other examples have a static width like 350px. I'm hoping to use the column method by Bootstrap.
Edit
var table = $("#table").DataTable({
"ajax": {
"url": "@Url.Action("Search", "Users")",
"type": "POST",
"data": function (d) {
},
"datatype": "json"
},
"dom": "f<'col-sm-6'>" ,
"language": {
"search": "",
"searchPlaceholder": "Search"
},
"select": {
"style": 'multi'
},
"ordering": true,
"lengthChange":false,
"columns": [
{
"data": function (data, type, row, meta) {
var url = "@Url.Action("Read","Users")/" + data.Id;
return "<a href='" + url + "'>"+data.UserName+"</i></a>"
}, "name": "Email"
},
{ "data": "Email", "name": "Email" },
{ "data": "PhoneNumber", "name": "PhoneNumber" },
],
"processing":true,
"serverSide": true,
});