Comments (4)
Please provide demo for more details.
from react-text-more-less.
额。。。就是能不能,以字数限制那个展开和收起,比如我要限制100字,才显示那个展开内容按钮。并不是根据高度。。。这样可以吗?
from react-text-more-less.
本组件的设计初衷是为了针对布局优化展示效果,因此这里限制的是组件高度。
如果是需要限制字数,解决方案的实现并不复杂,或可以使用其他组件,如 https://github.com/nkbt/react-collapse 等。
from react-text-more-less.
好,谢谢大佬
from react-text-more-less.
Related Issues (8)
- Does not collapse on initial page load even though collapse is set to true HOT 1
- Add support for dangerouslySetInnerHTML HOT 1
- Do not collapse on user select HOT 2
- can't run the demo on the local env HOT 2
- Toggle collapse is not working HOT 2
- Action Required: Fix Renovate Configuration
- Risk of XSS attacks due to innerHTML HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-text-more-less.