Socket
Socket
Sign inDemoInstall

chatter-box-input

Package Overview
Dependencies
5
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

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


Version published
Maintainers
1
Install size
162 kB
Created

Readme

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

FAQs

Last updated on 06 Mar 2022

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