This repository has been archived by the owner on May 11, 2021. It is now read-only.
Bug Fixes, Text Fixes, Notifications, and Config Options
Developers
The cilantro.templates
API now supports remote paths and functions fetched using the Cilantro RequireJS tpl
plugin. For example:
define(['cilantro'], function(c) {
// Extracts template ID based on path. Trims the leading slash and `template/`
// prefix if present.
c.templates.set('tpl!myproject/welcome.html');
// Wait until remote templates are loaded
c.ready(function() {
var template = c.templates.get('myproject/welcome');
});
});
define(['cilantro', 'tpl!myproject/welcome.html'], function(c, template) {
// Extracts template ID from function (added by the tpl plugin as _moduleName)
c.templates.set(template);
// Get it back out
template = c.templates.get('myproject/welcome');
});
Additionally, a validated method has been added(#537) to the ExporterDialog. This can be used by developers who might be extending the ExporterDialog. If you need to perform custom validation or extended validation before exporting results, you can do something like:
define(['cilantro'], function(c) {
var MyExporterDialog = c.ui.ExporterDialog.extend({
...
validate: function() {
var errors = c.ui.ExporterDialog.prototype.validate.apply(this, arguments);
// Do your custom validation here and add any errors with errors.push(...)
return errors;
},
...
});
});
Features
- Added a new config option to disable rounding for result counts under a certain threshold. When left unset, result counts will be rounded and larger values will have suffixes attached. For example,
11,321
would become11.3K
. However, if we set the threshold, viac.config.set('threshold', 100000);
for example, then no suffixing would happen because11,321
is less than the defined threshold of100,000
(#530). - Show the user a notification when a query(new or edited) is successfully saved (#536).
- Notify and provide instructions to the user when the results page is rendered and no columns are selected (#545).
Bug Fixes
- Fix issue where Apply/Update Filter buttons were not being disabled/enabled correctly (#532).
- Fix bug that allowed the user to export without selecting any columns (#539).
- Fix bug where control filters were not cleared of old attributes when new ones were set (#548).
- Fix bug where range controls would not disable the "Apply/Update Filter" button after clearing textbox (#551).
- Fix bug where users could save an empty view (#543).