
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
button-input-field
Advanced tools
This is an anglar component (module) that button input style for form 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.
npm install button-input-field
Then import the module ButtonInputFieldModule
and add the component
<wav-button-input-field></wav-button-input-field>
The following Inputs are available
Input | Type | Defaut | Description |
---|---|---|---|
label | STRING | NULL | label for input |
placeholder | STRING | NULL | placeholder for input |
copypaste | BOOLEAN | FASLE | button for copy contents |
readonly | BOOLEAN | FASLE | read only |
disabled | BOOLEAN | FASLE | disable input |
The following Inputs are available
| Output | Type | Description | | ----- | ---- | ------ | ----------- | | changed | STRING | event emitter on change |
The component is a formControl and accepts all events types
<wav-button-input-field
label="Service full name description"
placeholder="Local-Pro Transact"
formControlName="application"
(changed)="onUpdateBasicInfo()"
></wav-button-input-field>
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))
}
FAQs
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.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.