Skip to content

Commit 51878b0

Browse files
author
JelteMX
committed
Update README
1 parent 6fc599c commit 51878b0

File tree

3 files changed

+13
-22
lines changed

3 files changed

+13
-22
lines changed

README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
[![Apache License](https://img.shields.io/badge/license-Apache%202.0-orange.svg)](http://www.apache.org/licenses/LICENSE-2.0)
2-
[![Build Status](https://travis-ci.org/JelteMX/mendix-tree-view.svg?branch=master)](https://travis-ci.org/JelteMX/mendix-tree-view)
3-
[![Coverage Status](https://coveralls.io/repos/github/JelteMX/mendix-tree-view/badge.svg?branch=master)](https://coveralls.io/github/JelteMX/mendix-tree-view?branch=master)
4-
[![Dependencies](https://david-dm.org/JelteMX/mendix-tree-view.svg)]([https://david-dm.org/JelteMX/mendix-tree-view](https://david-dm.org/JelteMX/mendix-tree-view))
5-
[![DevDependencies](https://david-dm.org/JelteMX/mendix-tree-view/dev-status.svg)]([https://david-dm.org/JelteMX/mendix-tree-view?type=dev](https://david-dm.org/JelteMX/mendix-tree-view?type=dev))
62
[![Support](https://img.shields.io/badge/Support-Community%20(no%20active%20support)-orange.svg)](https://docs.mendix.com/developerportal/app-store/app-store-content-support)
73
![WM](https://img.shields.io/badge/Webmodeler%20compatible-NO-red.svg)
84
[![Studio](https://img.shields.io/badge/Studio%20version-8.0%2B-blue.svg)](https://appstore.home.mendix.com/link/modeler/)
@@ -33,6 +29,8 @@ Show a Tree structure in your Mendix project
3329
- Load children over reference, xpath or nanoflow
3430
- On Click events
3531
- Drag & Drop (Node-Parent)
32+
- State management (keep treestructure expansion in browser storage)
33+
-
3634
- **Experimental** Client side search (Only on loading a complete tree)
3735

3836
> This widget is about 300Kb uncompressed, so in your cloud deployment this widget should take about 83 Kb of network resources
@@ -75,15 +73,19 @@ Tested:
7573
- Drag & Drop is only enabled for objects with a parent relation
7674
- The widget will do the changes on the object by itself
7775

78-
### 6. Experimental - Search
76+
### 6. Search (experimental)
7977

8078
![settings](/assets/settings6.png)
8179

8280
- This feature is highly experimental and might be subject to change in future releases
8381
- It requires another helper entity, which will be used in calling a Nanoflow
8482
- The helper entity has a reference set of all the objects that are loaded, and the search query. It is up to you to create a Nanoflow that returns a list of objects to be shown (act as a filter)
8583

86-
### 7. Events
84+
### 7. Misc
85+
86+
- This deals with state management and exposing an external method to select an item
87+
88+
### 8. Events
8789

8890
![settings](/assets/settings7.png)
8991

@@ -102,9 +104,6 @@ Tested:
102104

103105
Please report your issues [here](https://github.com/JelteMX/mendix-tree-view/issues)
104106

105-
## Development and contribution
106-
[specify contribute]
107-
108107
## TODO
109108

110109
These are action items on the list for future releases

src/components/icons.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/store/index.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ export class NodeStore {
417417
// Entries
418418

419419
@computed
420-
get treeMapping(): { [key:string]: string } {
420+
get treeMapping(): { [key: string]: string } {
421421
const needParentMapping = this.entryObjectAttributes.relationType === "nodeChildren";
422422
const treeMapping: { [key: string]: string } = {};
423423

@@ -427,22 +427,21 @@ export class NodeStore {
427427
if (obj.children) {
428428
obj.children.forEach(child => {
429429
treeMapping[child] = obj.guid;
430-
})
430+
});
431431
}
432-
})
432+
});
433433
} else {
434434
this.entries.forEach(entry => {
435435
const obj = entry.obj;
436436
if (obj.parent) {
437-
treeMapping[obj.guid] = obj.parent
437+
treeMapping[obj.guid] = obj.parent;
438438
}
439-
})
439+
});
440440
}
441441

442442
return treeMapping;
443443
}
444444

445-
446445
@computed
447446
get entryList(): TreeObject[] {
448447
const needParentMapping = this.entryObjectAttributes.relationType === "nodeChildren";

0 commit comments

Comments
 (0)