Skip to content

Commit

Permalink
Add docs for iconMap
Browse files Browse the repository at this point in the history
  • Loading branch information
mar10 committed Dec 9, 2023
1 parent 303c63a commit a650202
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions docs/tutorial/tutorial_render.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,29 @@ const tree = new mar10.Wunderbaum({
});
```

`iconMap` can also be a custom map of icon names, e.g.
`iconMap` can also be a custom map of icon names, for example:

```js
const tree = new mar10.Wunderbaum({
...
iconMap: {
folder: "bi bi-folder",
file: "bi bi-file-earmark",
...
},
error: "bi bi-exclamation-triangle",
loading: "bi bi-chevron-right wb-busy",
noData: "bi bi-question-circle",
expanderExpanded: "bi bi-chevron-down",
expanderCollapsed: "bi bi-chevron-right",
expanderLazy: "bi bi-chevron-right wb-helper-lazy-expander",
checkChecked: "bi bi-check-square",
checkUnchecked: "bi bi-square",
checkUnknown: "bi bi-dash-square-dotted",
radioChecked: "bi bi-circle-fill",
radioUnchecked: "bi bi-circle",
radioUnknown: "bi bi-record-circle",
folder: "bi bi-folder2",
folderOpen: "bi bi-folder2-open",
folderLazy: "bi bi-folder-symlink",
doc: "bi bi-file-earmark",
},
...
});
```
Expand Down

0 comments on commit a650202

Please sign in to comment.