Other Components
You can find an example of tabs in forms and frames in the corresponding form/frame example files (public_src/html/forms/_gocore/form_example and public_src/html/frames/frame_example). Currently without description.
Tabs
Tree
You can find an example in the frame example file (public_src/html/frames/frame_example). Currently without description.
bootbox.dialog
Documentation for this library can be found on the internet.
Here is an example (the code is old but working)
var dialog = bootbox.dialog({
title: 'Change Password',
message: html,
buttons: {
success: {
label: 'Set New Password',
closeButton:false,
callback: function(){
var old_psw = $('#old_psw').val();
var new_psw1 = $('#new_psw1').val();
var new_psw2 = $('#new_psw2').val();
if (!old_psw || !new_psw1){
toastr.error('Fill in all fields.');
return false
}
if (new_psw1 !== new_psw2){
toastr.error('Passwords do not match.');
return false
}
var o = {
command: 'changePassword',
object: 'User',
params:{
password:old_psw,
new_password:new_psw1
}
};
socketQuery(o, function(res){
console.log(res);
});
}
},
cancel: {
label: 'Cancel',
callback: function(){
}
}
}
});
select2
You can attach a dropdown list to any field using its profile. This can be used, for example, in a modal window where the user is asked to select, for instance, an organization. By specifying the necessary parameters, the dropdown list will query the database with all relevant data access restrictions, filters, and settings.