项目
在 GitHub 查看 React-Truncate-Text
ShinyChang/React-Text-Truncate
关于
Truncate multi-lines text for all browsers base on react.js
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文React-Truncate-Text 
Install
npm install react-text-truncate
Usage
import TextTruncate from 'react-text-truncate'; // recommend
var TextTruncate = require('react-text-truncate'); // CommonJS or UMD
Markup
<TextTruncate
line={1}
element="span"
truncateText="…"
text="Lorem Ipsum is simply dummy text of the printing and typesetting industry."
textTruncateChild={<a href="#">Read on</a>}
/>
FAQ
Why TextTruncate not shown after display changed?
You must trigger update manually.
Will TextTruncate support IE10 or below?
No! IE 10 and below are dead according to Microsoft post.
探索相关项目
加载中…