Socket
Socket
Sign inDemoInstall

backbone.marionette.style

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backbone.marionette.style

React-like inline styles for Marionette Views.


Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Backbone Marionette Style

React-like inline styles for Marionette Views

Travis build status Code Climate Test Coverage Dependency Status devDependency Status

Usage

To use this Marionette Behavior, be sure to add it to the behaviorLookup.

import StyleBehavior from 'backbone.marionette.style';

Marionette.Behaviors.behaviorsLookup = function() {
  return {
    Style: StyleBehavior
  };
};

After you've done this you can add the Style behavior to one of your views, like so:

var StyleView = Marionette.ItemView.extend({
  template: _.template('<div></div>'),
  behaviors: {
    Style: {}
  },
  style: {
    backgroundColor: '#000',
    color: 'white',
    fontSize: 14,
    position: 'absolute'
  }
});

Licenses

This module uses code from Facebook React to generate the css from the style object. Their licenses apply.

Also uses the basic setup for the plugin from Backbone.Storage.

Keywords

FAQs

Package last updated on 03 Dec 2015

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