odbbrowser.js
This page contains the API reference for odbbrowser.js, the ODB browser and editor used by the built-in ODB page. Custom pages can use its two public functions: odb_browser() shows the browser in an element of the page, and odb_picker() opens a dialog in which the user selects an ODB key. The file's other functions are used internally by the browser.
For an introduction to custom pages and JavaScript, see the JavaScript API overview and Custom pages: overview.
For how to use the ODB browser on a custom page, with examples, see Custom pages: dialogs, tabs, sliders and diagrams.
Letting the user select an ODB key
odb_picker("/", function(flag, path) {
if (flag) { // true for OK, false for Cancel
console.log(path); // the selected key, with its full path
}
});
odb_browser
function odb_browser(id, path, picker, options = {})
Defined in resources/odbbrowser.js:629
odb_picker
function odb_picker(path, callback, param)
Defined in resources/odbbrowser.js:2567