Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

treetabular

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

treetabular - npm Package Compare versions

Comparing version 3.1.3 to 3.2.0

5

CHANGELOG.md
## treetabular
3.2.0 / 2017-02-25
==================
* Feature - Add `indent` prop to `tree.toggleChildren`. Set to `false` to default indentation behavior. #8
3.1.3 / 2017-02-22

@@ -4,0 +9,0 @@ ==================

8

dist/toggle-children.js

@@ -7,2 +7,6 @@ 'use strict';

var _get2 = require('lodash/get');
var _get3 = _interopRequireDefault(_get2);
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

@@ -72,6 +76,8 @@

var hasAutomaticIndentation = (0, _get3.default)(props, 'indent', true);
return _react2.default.createElement(
'div',
_extends({
style: { paddingLeft: level + 'em' }
style: !!hasAutomaticIndentation && { paddingLeft: level + 'em' }
// toggling children with a doubleClick would provide better UX

@@ -78,0 +84,0 @@ // since toggling with a click makes it difficult to select each item.

2

package.json
{
"name": "treetabular",
"version": "3.1.3",
"version": "3.2.0",
"description": "Tree utilities",

@@ -5,0 +5,0 @@ "scripts": {

@@ -126,3 +126,4 @@ [![build status](https://secure.travis-ci.org/reactabular/treetabular.svg)](http://travis-ci.org/reactabular/treetabular) [![bitHound Score](https://www.bithound.io/github/reactabular/treetabular/badges/score.svg)](https://www.bithound.io/github/reactabular/treetabular) [![codecov](https://codecov.io/gh/reactabular/treetabular/branch/master/graph/badge.svg)](https://codecov.io/gh/reactabular/treetabular)

Makes it possible to toggle node children through a user interface.
Makes it possible to toggle node children through a user interface.
Pass `"indent":false` inside `props` object if you want to disable automatic indentation.

@@ -129,0 +130,0 @@ The default implementation of `getIndex(rowData)` depends on [resolve.resolve](https://www.npmjs.com/package/table-resolver#resolveresolve) as it looks for index of the row to toggle based on that. This can be customized through.

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