Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
ds-inline-edit
Advanced tools
Edit an ember DS.model inline by clicking on it to toggle editor. Click outside or press escape to rollback change and cancel edit.
inspired by ember-inline-edit
ember install ember-ds-inline-edit
Use the ds-inline-edit
component and provide it a model with the property to edit/display.
{{ds-inline-edit
model=model
prop='name'
onError='onError'
}}
Customize input template using #ds-inline-edit
:
{{#ds-inline-edit model=person prop='age' as |age|}}
{{input type="number" class="form-control" value=age}}
{{/ds-inline-edit}}
This plugin relies on a strict usage of Ember Data. An automatic model update is sent upon confirming edit.
If the prop
is an object, the default display is the following property of the model :
displayName
> name
> id
Only the property identified through prop
is updated, the rest of the model remains
uncommited.
Currently, the only way to confirm an edit is to hit enter
.
Hitting esc
or clicking outside the component will also discard the edit.
When an error occurs, an onError
action is sent.
FAQs
EmberJS addon for editing models inline
The npm package ds-inline-edit receives a total of 0 weekly downloads. As such, ds-inline-edit popularity was classified as not popular.
We found that ds-inline-edit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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 a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.