Socket
Socket
Sign inDemoInstall

@encoreskytech/text-char-limit-hint

Package Overview
Dependencies
1
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @encoreskytech/text-char-limit-hint

To initialize the char limit feature on text input


Version published
Maintainers
3
Created

Readme

Source

Text Char limit Hint

Installation

npm i @encoreskytech/text-char-limit-hint
or
yarn add @encoreskytech/text-char-limit-hint

Add the tag like that and under that tag, add text area or textbox

<ng-text-char-limit-hint>
    // include your Textbox or Text are here
</ng-text-char-limit-hint>

Examples

<ng-text-char-limit-hint [maxCharLimit]="50" [format]="'REMAIN/TOTAL remaining'" [parentClass]="'parent-class'" [hintTextClass]="'child-class'">
    <textarea ></textarea>
</ng-text-char-limit-hint>

OR

<ng-text-char-limit-hint [maxCharLimit]="50" [format]="'REMAIN/TOTAL remaining'" [parentClass]="'parent-class'" [hintTextClass]="'child-class'">
    <input type="text" />
</ng-text-char-limit-hint>
PropertyType (Default)Description
maxCharLimitnumberLength of string which you want to limit
formatstringClassName for parent REMAIN and TOTAL are constants and values would be replaced if you use those. You can type anything in any order.
parentClassstringIf want to change the style of the parent div of the hint box.
hintTextClassstringIf need to change the hint string text style.

Contributor

Mahesh Soni

Keywords

FAQs

Last updated on 03 Dec 2021

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc