Skip to content

Commit a540d5d

Browse files
Merge branch 'release/v6.1.1'
2 parents 5afa879 + 65b64c6 commit a540d5d

20 files changed

+1425
-864
lines changed

.circleci/config.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Javascript Node CircleCI 2.0 configuration file
2+
#
3+
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
4+
#
5+
version: 2
6+
7+
defaults: &defaults
8+
working_directory: ~/repo
9+
docker:
10+
- image: circleci/node:10.13.1
11+
12+
jobs:
13+
test:
14+
<<: *defaults
15+
steps:
16+
- checkout
17+
18+
- restore_cache:
19+
keys:
20+
- v1-dependencies-{{ checksum "package.json" }}
21+
# fallback to using the latest cache if no exact match is found
22+
- v1-dependencies-
23+
24+
- run: npm install
25+
- run:
26+
name: Run tests
27+
command: npm test
28+
29+
- save_cache:
30+
paths:
31+
- node_modules
32+
key: v1-dependencies-{{ checksum "package.json" }}
33+
34+
- persist_to_workspace:
35+
root: ~/repo
36+
paths: .
37+
deploy:
38+
<<: *defaults
39+
steps:
40+
- attach_workspace:
41+
at: ~/repo
42+
- run:
43+
name: Authenticate with registry
44+
command: echo "//registry.npmjs.org/:_authToken=$npm_TOKEN" > ~/repo/.npmrc
45+
- run:
46+
name: Publish package
47+
command: npm publish
48+
49+
workflows:
50+
version: 2
51+
test-deploy:
52+
jobs:
53+
- test:
54+
filters:
55+
tags:
56+
only: /^v.*/
57+
- deploy:
58+
requires:
59+
- test
60+
filters:
61+
tags:
62+
only: /^v.*/
63+
branches:
64+
ignore: /.*/

README.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -124,23 +124,9 @@ To map your JSON objects to TreeItem objects.
124124
]
125125
});
126126
```
127-
128-
You can pass the second paramater 'autoCorrectChecked' with value=true (default is false) in constructor of TreeviewItem to correct checked value of it and all of its descendants. In some cases, you need to push or pop children flexibly, checked of parent may be not correct. Then you need to call function correctChecked() to help to correct from root to its descendants.
129-
```js
130-
const vegetableCategory = new TreeviewItem({
131-
text: 'Vegetable', value: 2, children: [
132-
{ text: 'Salad', value: 21 },
133-
{ text: 'Potato', value: 22 }
134-
]
135-
});
136-
vegetableCategory.children.push(new TreeviewItem({ text: 'Mushroom', value: 23, checked: false }));
137-
vegetableCategory.correctChecked(); // need this to make 'Vegetable' node to change checked value from true to false
138-
```
139-
140127
#### TreeviewEventParser:
141128
Extract data from list of checked TreeviewItem and send it in parameter of event selectedChange. Some built-in TreeviewEventParser:
142129
* DefaultTreeviewEventParser: return values of checked items.
143-
* DownlineTreeviewEventParser: return list of checked items in orginal order with their ancestors.
144130
* OrderDownlineTreeviewEventParser: return list of checked items in checked order with their ancestors. Note that: value of a leaf must be different from value of other leaves.
145131

146132
#### Templating:

0 commit comments

Comments
 (0)