jellekralt / Responsive-Tabs

Responsive Tabs is a jQuery plugin that provides responsive tab functionality. The tabs transform to an accordion when it reaches a CSS breakpoint. You can use this plugin as a solution for displaying tabs elegantly on desktop, tablet and mobile.
http://jellekralt.github.io/Responsive-Tabs/
MIT License
531 stars 228 forks source link

Using with Webpack #149

Open sergiop opened 5 years ago

sergiop commented 5 years ago

I'm trying to use the plugin with Webpack, but i get: jquery.js?eedf:3827 Uncaught TypeError: tabs.responsiveTabs is not a function

Any ideas?

import $ from 'jquery'
import 'responsive-tabs'

export const initTabs = () => {
  const tabs = $('[data-js="tabs"]')

  tabs.responsiveTabs({
    startCollapsed: 'accordion'
  })
}
Electrofenster commented 5 years ago

same here. Any Idea?

LevGlushchenko commented 5 years ago

Can anyone resolve this problem?

pdrittenhouse commented 1 year ago

Can the responsiveTabs function be exported as a node module.export?