Coder Social home page Coder Social logo

tiliaks / ellipsed Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nzambello/ellipsed

0.0 2.0 0.0 79 KB

A JavaScript library for multilined ellipsis

Home Page: https://nzambello.github.io/ellipsed/

License: MIT License

CSS 9.72% JavaScript 65.30% HTML 24.98%

ellipsed's Introduction

ellipsed

license   GitHub forks GitHub stars
npm version npm npm   Demo

A JavaScript library for multilined ellipsis

Usage

It provides a function that is defined as: ellipsed(selector, rows);

selector is a CSS selector string and rows is the number of rows should be visible. Words those exceede that number of rows are trucated with ... at the end.

Install

Ellipsed is published via npm, so you can install it with:

yarn add ellipsed

or, if using npm: npm install ellipsed

It's published also via bower:

bower install ellipsed

Demo

In the example/ directory of this repo there is an example. You can start it with npm start (or with yarn start).
The main template is in the root directory with the library and other stuffs are in the example/ directory.

You can also see the example here: https://nzambello.github.io/ellipsed/

Contributing   contributions welcome

New contributors are warmly welcome, see the CONTRIBUTING.md file for other infos.

ellipsed's People

Contributors

pnicolli avatar

Watchers

James Cloos avatar Sergey avatar

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.