Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
aurelia-style-binding-command-plugin
Advanced tools
* Extends SyntaxInterpreter of default Binding Language implementation with commands `.style` (same with `.style-to-view`, `.style-one-way` but shorter), `.style-one-time`, `.style-two-way`, `.style-from-view` to bind to a single css rule of an element.
.style
(same with .style-to-view
, .style-one-way
but shorter), .style-one-time
, .style-two-way
, .style-from-view
to bind to a single css rule of an element.npm install aurelia-style-binding-command-plugin
// app-entry.js
import 'aurelia-style-binding-command-plugin';
build
npm run build
npm run test
.style-*
binding commands instruct Aurelia to observe view model and assign new value to css property, like standard behavior of an Aurelia binding. .style-from-view
and .style-two-way
work via MutationObserver
, that detects change on style
attribute of observed element.<div background-color.style='background'></div>
<div style.background-color='background'></div>
The former is predictable, it follows the [attribute-name].[binding-command]=[expression]
pattern that you see everywhere in an Aurelia application. The later is a more natural syntax for reading, as background-color
is a property of style
property of the element. If you think why it should be supported, please help file an issue.
FAQs
* Extends SyntaxInterpreter of default Binding Language implementation with commands `.style` (same with `.style-to-view`, `.style-one-way` but shorter), `.style-one-time`, `.style-two-way`, `.style-from-view` to bind to a single css rule of an element.
The npm package aurelia-style-binding-command-plugin receives a total of 0 weekly downloads. As such, aurelia-style-binding-command-plugin popularity was classified as not popular.
We found that aurelia-style-binding-command-plugin 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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.