![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
AngularJS Plugin : easily switch between any element and input/textarea, auto-resize, customizable
AngularJS plugin : Use to easily edit your content by switching between <div> <span>
(etc...) and <input> or <textarea>
npm install edilastic
var app = angular.module('myApp', ['edilastic'])
<h1 edilastic="mymodel" onconfirm="confirm(mymodel)">
You can modify default settings by 2 ways :
<div edilastic="content" type="textarea">{{content}}</div>
$scope.settings = {
type:"textarea",
shut:"button",
clone:"false",
textareaTemplate:"<textarea class=\"edilastic-custom\"></textarea>",
};
<div edilastic="content" options="{{settings}}" shut="window"></div>
in this example, shut is indicated twice, the attribut element got the priority over the settings object
Some parameters are only accessible through attributs, some others only through options
edilastic : scope model (required)
attrs only
the scope model used by the directive to read / modify its content
type : "input" (default) / "textarea"
attrs / options
switch your DOM element into input or textarea
tid : default null
attrs / options
define the input/textarea id
shut : "window" (default) / "button"
attrs / options
Define the close method : "window" will simply switch back from edilastic input to your element on each outside window click.
it also proccess to the confirm feature (updating the scope model) or cancel feature if no modification was made.
"button" will append a confirm & cancel button next to the element.
external : default null [String/Array]
attrs / options
using shut = "window", it can be usefull to avoid closing the input/textarea when clicking external element(s) :
external property is a String or Array of id.
elastic : true (default) / false
attrs / options
enable/disable auto resize when typing. (only available with textarea)
clone : true(default) / false
attrs / options
copy the original element's class names to the edilastic input/textarea
onconfirm, onopen, onclose : default null [Function]
attrs only
call the defined function on each evenements
{
// only if "shut" == "button"
confirmTemplate:"<button type=\"button\" class=\"btn-edilastic btn-confirm\">Confirm</button>",
cancelTemplate:"<button type=\"button\" class=\"btn-edilastic btn-cancel\">Cancel</button>",
textareaTemplate:"<textarea class=\"edilastic-open\"></textarea>",
inputTemplate:"<input class=\"edilastic-open\"/>"
}
FAQs
AngularJS Plugin : easily switch between any element and input/textarea, auto-resize, customizable
The npm package edilastic receives a total of 1 weekly downloads. As such, edilastic popularity was classified as not popular.
We found that edilastic 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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.