🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

chatter-box-input

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chatter-box-input

This Angular Material TextArea Input that a formControl displaying the charCount or Char Remaining

1.0.3
latest
npm
Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

Chatterbox

Chatterbox is a simple material formcontrol component text area that expands and indicates the number of chars entered or remaining.

Inputs

The following Inputs are available

InputTypeDefautDescription
maxLengthNUMBERINFmaximum amount of chars accepted for input
minLengthNUMBER0minimum amount of chars accepted for input
requiredBOOLEANFALSEText entry is required
labelSTRINGNULLlabel for TextArea
placeholderSTRINGNULLplaceholder text in TextArea input
counterLabelSTRINGNULLlabel for Counter
typeNUMBER11 is Total Count and -1 is Count Remaining
minRowsNUMBERNULLMin Rows (Height) for TextArea
maxRowsNUMBERNULLMax Rows (Height) for TextArea
appearenceSTRINGNULLinput style
readonlyBOOLEANfalsemakes text for disabled state black NOT 50%

FormControl

formControlName="comments"

 countrySelection = this.fb.group({
    comments: [null],
  })

Options

Here is the minimum setup required

  <wave-chatter-box
    [maxLength]="255"
    [minLength]="0"
    [label]="'Please enter your message'"
    [placeholder]="'I need some assisstance...'"
    [counterLabel]="'Total Remaining'"
    [type]="-1"
    formControlName="chatter"
  ></wave-chatter-box>

Here is the maximum setup

<div [formGroup]="form">

  <wave-chatter-box
    [maxLength]="100"
    [minLength]="10"
    [label]="'Please enter your message'"
    [placeholder]="'I need some assisstance...'"
    [counterLabel]="'Total Characters Remaining'"
    [type]="-1"
    [minRows]="15"
    [maxRows]="15"
    appearance="outline"
    required="true"
    [readOnly]="true"
    formControlName="chatter"
  ></wave-chatter-box>

</div>

Keywords

angular

FAQs

Package last updated on 06 Mar 2022

Did you know?

Socket

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