From 53dac27b932abdf734ac5d661293f42686f288c7 Mon Sep 17 00:00:00 2001 From: jacksonjunelee Date: Mon, 16 Jul 2018 22:17:37 -0400 Subject: [PATCH 1/2] add cssClass to settings to add custom css to value-container --- README.md | 1 + src/tree-internal.component.ts | 6 +++++- src/tree.ts | 13 +++++++++++-- src/tree.types.ts | 1 + test/settings.tree-internal.component.spec.ts | 6 ++++++ 5 files changed, 24 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a1429cbb..729dd055 100644 --- a/README.md +++ b/README.md @@ -346,6 +346,7 @@ Here is an example of its usage: ``` * `static` - Boolean - This option makes it impossible to drag a tree or modify it in a some way, though you still can select nodes in the static tree and appropriate events will be generated. +* `cssClass` - String - It specifies a css class (or classes) for the container of the entire item. * `isCollapsedOnInit` - Boolean - This option makes a tree to be collapsed on first load (this option cascades to its children). * `rightMenu` - Boolean - This option allows you to activate (true, by default) or deactivate (false) right menu when clicking with right button of a mouse. * `leftMenu` - Boolean - This option allows you to activate (true) or deactivate (false, by default) left menu. diff --git a/src/tree-internal.component.ts b/src/tree-internal.component.ts index 1da00de3..710cc625 100644 --- a/src/tree-internal.component.ts +++ b/src/tree-internal.component.ts @@ -31,7 +31,7 @@ import { get, isNil } from './utils/fn.utils';