Giter Club home page Giter Club logo

Comments (4)

JStrebeyko avatar JStrebeyko commented on May 18, 2024

Hi there,
<Carousel> takes in an interval props, specifying a number of milliseconds after which it will be performing the next() function. Therefore, Carousel’s interval in MDB React is set with, for example, <Carousel interval={8000}>.

from mdb-react-ui-kit.

kkbeheramca avatar kkbeheramca commented on May 18, 2024

thanks JStrebeyko ,
i tried this way of setting interval as you mentioned even tried direct data attribute such as data-interval="10000" , but none of these working , it takes default 5000 as interval. when debug through carousel.js or index.js in dist i saw the hardcoded value set to "5000" i guess there is no props overriding it from props set interval.
can you let me know if this works for you then which build or little more detail on this

from mdb-react-ui-kit.

JStrebeyko avatar JStrebeyko commented on May 18, 2024

Hey @kkbeheramca ,
You are right in that it takes in a default value, but it's 6000, not 5000. Moreover, it is default as in defaultProps, meaning it is made to be overriden with props, and never hard-coded.

The kind of problems you are getting (mainly, assuming a wrong default value, but also trying to use data-* attributes) suggests you are using a wrong repo or a good one the wrong way. Please refer to the docs for guidence.

Best, Kuba

from mdb-react-ui-kit.

kkbeheramca avatar kkbeheramca commented on May 18, 2024

thanks @JStrebeyko , i guess my version is different and it shows 5000 was default value set without prop defined. i will have to upgrade to this version or copy of components.
thank you again.

from mdb-react-ui-kit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.