glinford / ellipsis.js Goto Github PK
View Code? Open in Web Editor NEWEllipsis.js - Pure Javascript Library to handle complex multilines ellipsis
Home Page: https://glinford.github.io/ellipsis.js/
License: MIT License
Ellipsis.js - Pure Javascript Library to handle complex multilines ellipsis
Home Page: https://glinford.github.io/ellipsis.js/
License: MIT License
When break_word
is false
it adds a space after the last word, e.g. "Hello โฆ"
. This space should be part of the option property ellipsis
and not be added automatically.
YUI minificator creates a conflict with Ellipsis. It happens with the 'class' property, we gave a temporal solution by using 'class' and ['class'] in each appearence of the property, but they should renamed to keep consistance
It seems the latest version of the library is crashing the IE 9 because of "site is not responding due to a long-running script.".
I checked older versions as the demo site seems to work and the latest version without having the issue occurring for me was:
https://github.com/glinford/ellipsis.js/tree/bd192fa62cfff1a3eb40d72b31ae2285a61ab87d
Also when trying to pause the code in the debugger of the developer tools right before the browser crashes it showed the same line loading that has been added after the code started to crash:
c6363e4
Let me know if you need any additional information.
At the moment, only the package.json specifies the license (MIT). To make the license clear it would be good to have a dedicated LICENSE file with the complete MIT license text, as it is (presumably) good practice at least for GitHub repos.
Anyway, thank you for your library!
For some reason the manual implementation of ellipsis.js doesn't work in my Webpack environment. From the plugin I can see for example that there's no module.exports
. I've fixed it temporarily by attaching a unique selector to every item that should work with the plugin and used it as selector.
i wish i could do Elipsis.destory()
to remove current resize functionality
I have need for this feature... is there a way I can do it?
I may make a pull request and add a method if you like, but for now I need a workaround.
I tested this package on Server side rendering.
And i got a error message.
self.Ellipsis = EllipsisClass;
^
ReferenceError: self is not defined
Thank you to make this package anyway.!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.