All Projects → hyunguyen → dotstail

hyunguyen / dotstail

Licence: MIT license
This Repo helps you make a look alike text-overflow ellipsis for multiple lines using JS.

Programming Languages

HTML
75241 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to dotstail

MultiFontViewKotlin-Android
MultiFontViewKotlin library can be used to select custom fonts for the view dynamically in your XML
Stars: ✭ 13 (-18.75%)
Mutual labels:  multiple
ce
Coma Editor - my personal editor
Stars: ✭ 20 (+25%)
Mutual labels:  text-editor
vulcan
A minimalistic text editor designed for both ordinary use and software development
Stars: ✭ 46 (+187.5%)
Mutual labels:  text-editor
Smart-Text-Editor
The text editor that requires only a browser and a keyboard!
Stars: ✭ 60 (+275%)
Mutual labels:  text-editor
dotfiles
files that start . and makes my Linux box awesome.
Stars: ✭ 57 (+256.25%)
Mutual labels:  dots
webpack-multiple-page-boilerplate
webpack-multiple-page-boilerplate
Stars: ✭ 16 (+0%)
Mutual labels:  multiple
editor
A text editor written in Nim
Stars: ✭ 24 (+50%)
Mutual labels:  text-editor
ECSEntityBuilder
Unity ECS Entity Builder/Wrapper
Stars: ✭ 39 (+143.75%)
Mutual labels:  dots
Deb Dots
Debian GNU/Linux dot files.
Stars: ✭ 49 (+206.25%)
Mutual labels:  dots
mano-simulator
🖥️ An assembler and hardware simulator for the Mano Basic Computer, a 16 bit computer.
Stars: ✭ 20 (+25%)
Mutual labels:  text-editor
zee
A modern text editor for the terminal written in Rust
Stars: ✭ 1,120 (+6900%)
Mutual labels:  text-editor
am-editor
A rich text collaborative editor framework that can use React and Vue custom plug-ins. 一个富文本实时协同编辑器框架,可以使用React和Vue自定义插件。
Stars: ✭ 542 (+3287.5%)
Mutual labels:  text-editor
goneovim
A GUI frontend for neovim.
Stars: ✭ 1,721 (+10656.25%)
Mutual labels:  text-editor
codepad
Text editor written in C++, aims to be fast, sexy, cross-platform, and customizable
Stars: ✭ 38 (+137.5%)
Mutual labels:  text-editor
dead-simple-text
Minimalist plain text editor for the web
Stars: ✭ 34 (+112.5%)
Mutual labels:  text-editor
ECSCombat
A space battle simulation, based around Unity ECS framework
Stars: ✭ 81 (+406.25%)
Mutual labels:  dots
MGM-Ability
No description or website provided.
Stars: ✭ 64 (+300%)
Mutual labels:  dots
x-studio.github.io
This is the issues tracking, roadmap, docs src repo of the x-studio IDE. Copyright © 2014-2022 Simdsoft Limited
Stars: ✭ 92 (+475%)
Mutual labels:  text-editor
vue-cli-plugin-pages
vue-cli 3 plugin to build multi-page application
Stars: ✭ 12 (-25%)
Mutual labels:  multiple
Game-Tricks
Game Tricks !!!
Stars: ✭ 91 (+468.75%)
Mutual labels:  dots

dotstail

NPM version Downloads

enter image description here

Quick start

How to use

In other to use dotstail:

  1. The element you want to have a text elipsis effect must have a CSS line-height property (must be a em unit).
  2. In your script file, set dotstail function for the element:
dotstail.setDot ({  
   'element': '*your element class or id here*',  
   'letter': 0,  
   'lines': 4  
});
  • Please keep in mind: letter, and line option are optional, use them if you want to. Also those options must be a number, not string.

Call the function

Call the function by dotstail.setDot ();

Demo

Documentation

  • element : is your element class/Id
  • letter : is the number of letter you want to cut out at the end of the last line.
  • lines : is the number of line you want your element to have a text elipsis effect.

Tree

public/
  └── theme/
      └── js/
            └── dotstail.min.js

Template full feature list

  • Semantically Correct / Valid HTML Code
  • HTML5, CSS3
  • Javascript / JS6
  • Full project and seed project (build with: Gulp, Sass, Javascript, Npm)
  • Cross browser compatible ( Internet Explorer 10+, Firefox, Safari, Opera, Chrome etc. )
  • W3C Valid source code, properly formatted and commented

Creators

Foxieboy

Copyright and license

Code and documentation copyright 2017, MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].