![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
ellipsis-angular
Advanced tools
A simple ellipsis directive for Angular 15+ that cuts content and adds '…' character if HTML content is overflowed.
Sample demo page
Angular 15+ directive to truncate multi-line text to the visible height. Unlike most ellipsis components this may be used
with HTML content also. The end of the visible text is appended with an ellipsis symbol …
npm install ellipsis-angular
Add module import to your Angular application:
import { EllipsisAngularModule } from 'ellipsis-angular';
...
@NgModule({
imports: [
BrowserModule,
...
EllipsisAngularModule
],
Start using directive:
<div ellipsis-angular>
...
</div>
There are two options available for using ellipsis-angular.
You may use it with static content without any additional settings:
<div ellipsis-angular>
<!-- Static HTML content goes here --->
</div>
There will be ellipsis added if needed once component loads or a browser window resizes. But it will not react to any inner content change.
You may provide [innerHTML] parameter if you want ellipsis to react on inner HTML content change:
<div ellipsis-angular [innerHTML]="someHTMLStringVariable"></div>
This way ellipsis will render someHTMLStringVariable html content and will also react on its changes.
This directive is using ResizeObserver to detect container size changes. Please see can I use site for the browser support of this feature.
This component is inspired by dibari/angular-ellipsis AngularJS directive made by Eric Di Bari (dibari). Please see this author on GitHub. Some code samples are reused in this directive under MIT License.
FAQs
A simple ellipsis directive for Angular 15+ that cuts content and adds '…' character if HTML content is overflowed.
We found that ellipsis-angular demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.