New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

d-bootstrap

Package Overview
Dependencies
Maintainers
4
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

d-bootstrap - npm Package Compare versions

Comparing version 0.1.1 to 0.1.4

.npmignore

4

dropdown/index.js

@@ -29,3 +29,3 @@ module.exports = Dropdown;

Dropdown.prototype.label = function(value) {
var options = this.model.get('options') || [];
var options = this.getAttribute('options') || [];
for (var i = 0, len = options.length; i < len; i++) {

@@ -37,3 +37,3 @@ var option = options[i];

}
return this.model.get('prompt') || 'Select';
return this.getAttribute('prompt') || 'Select';
};

@@ -40,0 +40,0 @@

@@ -5,3 +5,5 @@ module.exports = function(app, options) {

app.component(require('./tabs'));
app.loadStyles(__dirname + '/css/bootstrap.min');
app.component(require('./alert'));
app.component(require('./contextMenu'));
if(!options || (options && options.loadStyles)) app.loadStyles(__dirname + '/node_modules/bootstrap/dist/css/bootstrap.min');
};
{
"name": "d-bootstrap",
"description": "A Derby component library based on Twitter Bootstrap.",
"version": "0.1.1",
"version": "0.1.4",
"homepage": "http://derbyjs.com/",
"repository": {
"type": "git",
"url": "git://github.com/codeparty/d-bootstrap.git"
"url": "git://github.com/derbyjs/d-bootstrap.git"
},
"dependencies": {},
"dependencies": {
"bootstrap": "^3.3.1"
},
"devDependencies": {},
"optionalDependencies": {},
"engines": {}
"engines": {},
"bugs": {
"url": "https://github.com/derbyjs/d-bootstrap/issues"
},
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "MIT"
}

@@ -5,2 +5,29 @@ # Derby Boot

## Installation
```
npm install d-bootstrap
```
## Usage
To use the component library in a Derby project pass it to `app.use` as usual.
```javascript
app.use(require('d-bootstrap'));
```
Twitter Bootstrap is installed via npm dependencies, but one can choose whether or not to have the component load the Bootstrap styles by passing an options object to the component through `app.use`. The object should contain a boolean `loadStyles` which dictates if styles are loaded or not. If no options are provided, the styles are loaded automatically.
```javascript
// Loads styles
app.use(require('d-bootstrap'));
// Loads styles
app.use(require('d-bootstrap'), {loadStyles: true});
// Does not load styles
app.use(require('d-bootstrap'), {loadStyles: false});
```
# Contributors wanted!

@@ -7,0 +34,0 @@

Sorry, the diff of this file is not supported yet

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