Skip to content

Commit 228dbe2

Browse files
authored
Add Unit / Integration tests (#39)
* Disable drag and drop for specific node. Remove dependency on `user` * Update README.md * Update package.json * Add testing * Item-based style * Updated documentation
1 parent 9139461 commit 228dbe2

14 files changed

+12341
-7113
lines changed

.github/workflows/main

-25
This file was deleted.

.github/workflows/npm-publish.yml

-33
This file was deleted.

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ export interface TreeViewItem {
9292
expanded?: boolean;
9393
disableDragAndDrop?: boolean; // Disable drag and drop for a specific node.
9494
disabled?: boolean;// When disabled, an item can neither be selected nor checked
95+
styles?: string[]; // Add the .css styles for a given item
9596
meta?: any;// provides meta-data of any type per node.
9697
}
9798
```

dev/serve.vue

+9
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,13 @@ button {
119119
background: blue !important;
120120
}
121121
122+
.red-background {
123+
background: black !important;
124+
color: white;
125+
}
126+
127+
.bold-font {
128+
font-weight: bold !important;
129+
}
130+
122131
</style>

dev/tree.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
{
33
"name": "Rejection Emails",
44
"type": "emails",
5+
"styles": ["red-background", "bold-font"],
56
"expanded": true,
67
"children": [
78
{

0 commit comments

Comments
 (0)