TypeError: $.fn.bootstrapTable is undefined
See original GitHub issueHey all!
Trying to impliment the filterControl extension of the Bootstrap-table. I added the options to my table/table-headers and when I saw no change I looked to see if there were any errors with the JS console and it came up with TypeError: $.fn.bootstrapTable is undefined.
Here is my code:
html:
<table
data-toggle="table"
data-search="true"
data-pagination="false"
data-height="800"
data-sort-name="Company_Name"
data-sort-order="ASC"
data-show-columns="true"
data-show-toogle="true"
data-show-export="true"
filterControl="true"
filterShowClear="true"
>
<thead>
<th>Display Name</th>
<th>Company Name</th>
<th>Address 1</th>
<th>Address 2</th>
<th>Address 3</th>
<th>Town Name</th>
<th>County</th>
<th>Postcode</th>
<th>Phone</th>
<th>WWW</th>
<th>Contact Name</th>
<th showFilter="true" filterControl="select">Membership Level Name</th>
</thead>
The example I followed didn’t have a script so I’m assuming this is how? (if not, could someone update the examples 😃 )
thanks 😸
Issue Analytics
- State:
- Created 8 years ago
- Comments:19 (4 by maintainers)
Top Results From Across the Web
Error using Editable extension of Bootstrap-Table
I am having some trouble using Editable extension of wenzhixin Bootstrap-table found at https://github.com/wenzhixin ...
Read more >If you encounter $.fn.bootstraptable.utils undefined error
If you encounter $.fn.bootstraptable.utils undefined error - Use bootstrap-table.min.js of atleast 1.9.1 version.
Read more >Documentation - Bootstrap Table
DescriptionDefines the default undefined text. Namestriped. Attributedata-striped. TypeBoolean.
Read more >BootstrapTable Props · react-bootstrap-table2 - GitHub Pages
noDataIndication should be a callback function which return anything that will be showed in the table when data is empty. loading - [Bool]....
Read more >Table Options - Bootstrap Table
Type: Function. Detail: A method to replace ajax call. Should implement the same API as jQuery ajax method. Default: undefined. Example: Table AJAX ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think it can be a order references issue… Please double check your script order @TreyTaylor
I suppose you dont have
$.fn.bootstrapTable.utils = { sprintf: sprintf, getFieldIndex: getFieldIndex, compareObjects: compareObjects, calculateObjectValue: calculateObjectValue }; in your bootstrap-table.js refresh latest version of it 😃 wenzhixin, you are awesome! 😃)