question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: $.fn.bootstrapTable is undefined

See original GitHub issue

Hey 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:closed
  • Created 8 years ago
  • Comments:19 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
djhvscfcommented, Jul 3, 2015

I think it can be a order references issue… Please double check your script order @TreyTaylor

0reactions
tvik3000commented, Jan 21, 2016

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! 😃)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found