mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 15:00:26 +00:00
Merge pull request #2791 from AdaskoTheBeAsT/master
Synchronization with 3.0.3 version of jstree
This commit is contained in:
+32
-1
@@ -6,6 +6,8 @@ var version: string = $.jstree.version;
|
||||
// create new instance
|
||||
var instance1: JSTree = $('div').jstree();
|
||||
|
||||
$('div').jstree('open_node', '#branch');
|
||||
|
||||
// get existing reference
|
||||
var existingReference: JSTree = $.jstree.reference('sds');
|
||||
|
||||
@@ -63,5 +65,34 @@ var advancedTree = $("#briefcasetree").jstree({
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
var a = $('a').jstree();
|
||||
|
||||
|
||||
//tree with new unique plugin parameters
|
||||
var treeWithUnique = $('#treeWithUnique').jstree({
|
||||
unique: {
|
||||
case_sensitive: true,
|
||||
duplicate: (name: string, counter: number): string => {
|
||||
return name + ' ( ' + counter.toString() + ' )';
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// tree with new core properties
|
||||
var treeWithNewCoreProperties = $('#treeWithNewCoreProperties').jstree({
|
||||
core: {
|
||||
worker: true,
|
||||
force_text: true,
|
||||
}
|
||||
});
|
||||
|
||||
// tree with new checkbox properties
|
||||
var treeWithNewCheckboxProperties = $('#treeWithNewCheckboxProperties').jstree({
|
||||
checkbox: {
|
||||
cascade: true,
|
||||
tie_selection: true
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Vendored
+380
-84
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user