Giter Site home page Giter Site logo

Word limit about react-text-more-less HOT 4 CLOSED

vivaxy avatar vivaxy commented on June 26, 2024
Word limit

from react-text-more-less.

Comments (4)

vivaxy avatar vivaxy commented on June 26, 2024

Please provide demo for more details.

from react-text-more-less.

huizhang001 avatar huizhang001 commented on June 26, 2024

额。。。就是能不能,以字数限制那个展开和收起,比如我要限制100字,才显示那个展开内容按钮。并不是根据高度。。。这样可以吗?

from react-text-more-less.

vivaxy avatar vivaxy commented on June 26, 2024

本组件的设计初衷是为了针对布局优化展示效果,因此这里限制的是组件高度。
如果是需要限制字数,解决方案的实现并不复杂,或可以使用其他组件,如 https://github.com/nkbt/react-collapse 等。

from react-text-more-less.

huizhang001 avatar huizhang001 commented on June 26, 2024

好,谢谢大佬

from react-text-more-less.

Related Issues (8)

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.