Comments (1)
You're right, dataSource
parameter must be changed to provide more options. But, in my opinion it would be better to return jQuery.ajax
object.
In this case user can define additional parameters and override error
function. In example:
dataSource: function(oParentNode){
var id = oParentNode === undefined ? 0 : oParentNode.id;
return $.ajax({
url: "tree/items/url/",
data: {
parentId: id,
level: 0
},
method: 'POST',
error: function (XMLHttpRequest) {
alert(XMLHttpRequest.responseText);
}
});
}
from bootstrap-gtreetable.
Related Issues (19)
- Checking for the existence of the language file HOT 1
- openAll and closeAll methods needed HOT 1
- PHP sample source code HOT 5
- Include less file
- Customizing the right actions menu HOT 2
- Documentation is extremely lacking
- Rename action title for each level
- Cache not working? HOT 1
- Is there possibility to display all nodes expanded by default? HOT 2
- Incorrect node drop position
- extension
- Is this project still maintained ?
- Hiding buttons
- Adding additional fields
- Json file
- Search in tree (ajax)
- Adding new item on same level as existing items.
- Callback for root nodes shouldn't return a list
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 bootstrap-gtreetable.