Comments (2)
Hi,
For the moment, we can reload treeview data because the treeview don't accept data url to refresh.
You can clear the html dom element of treeview and then build it again.
Thanks
from bstreeview.
Note: This works in v1.0.0.
Based on the solution provided by @chniter, do the below:
-
Remove the TreeView element.
$('#TreeViewDiv').remove();
-
Append the TreeView element.
$('#ParentDiv').append('<div id="TreeViewDiv"></div>');
-
Build the TreeView again.
$('#TreeViewDiv').bstreeview({
data: JSON.stringify(treeViewData),
expandIcon: 'fa fa-angle-down fa-fw',
collapseIcon: 'fa fa-angle-right fa-fw',
indent: 1.25,
parentsMarginLeft: '1.25rem',
openNodeLinkOnNewTab: true
});
from bstreeview.
Related Issues (20)
- Href does nothing HOT 9
- can you add checkbox HOT 2
- Remove margin-left for better accessibility HOT 1
- Add Bootstrap Badges HOT 1
- Freeze with lots of child nodes HOT 2
- event for get current selected node id and text when user click that node HOT 1
- customize the name property of the data HOT 1
- How can I use this with Webpack? HOT 5
- Expand/Collapse Icons Should Not Render When No Children Nodes Are Available HOT 1
- Bootstrap 5 HOT 5
- States
- How can i add a new tree to the same div? HOT 4
- Refreshing or reloading updated tree ? HOT 2
- add buttons to each node HOT 1
- json as string HOT 1
- search function not working
- add tooltip to each node
- Possibility to add attributes
- [Feature Request] Methods to programmatically expand/collapse a list-group and custom id attribute value HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bstreeview.