New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

button-input-field

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

button-input-field

This is an anglar component (module) that button input style for form input field

  • 0.1.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
10
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

Button Input Field

This is an anglar component (module) that has a style and feel of a button. Hover hilights the button and you must click to edit and enter the input state. Once completed the user may choose to tab (blur), click the checkmark (icon) or press return to exit the editable state.

This is a formControl and can easily be added to a formgroup the typical way. There are also event (change) you can register actions.

Intsallation

npm install button-input-field

Then import the module ButtonInputFieldModule

and add the component

<wav-button-input-field></wav-button-input-field>

Inputs

The following Inputs are available

InputTypeDefautDescription
labelSTRINGNULLlabel for input
placeholderSTRINGNULLplaceholder for input
copypasteBOOLEANFASLEbutton for copy contents
readonlyBOOLEANFASLEread only
disabledBOOLEANFASLEdisable input

Output

The following Inputs are available

| Output | Type | Description | | ----- | ---- | ------ | ----------- | | changed | STRING | event emitter on change |

FormControl

The component is a formControl and accepts all events types

Options

<wav-button-input-field
  label="Service full name description"
  placeholder="Local-Pro Transact"
  formControlName="application"
  (changed)="onUpdateBasicInfo()"
></wav-button-input-field>

Sample Implementation

selection: formGroup

constructor(
  private fb: FormBuilder
  ) {}

ngOnInit() {

  selection = this.fb.group({
    country: [null]
  })

  this.selection.patchValue({ country: 'Canada'})
  this.selection.valueChanges.subscribe(data => console.log(data))

  }

Keywords

FAQs

Package last updated on 08 May 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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc