**Developers**
The `cilantro.templates` API now supports remote paths and functions fetched using the Cilantro RequireJS `tpl` plugin. For example:
javascript
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');
});
});
javascript
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(https://github.com/cbmi/cilantro/pull/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:
javascript
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 become `11.3K`. However, if we set the threshold, via `c.config.set('threshold', 100000);` for example, then no suffixing would happen because `11,321` is less than the defined threshold of `100,000` (https://github.com/cbmi/cilantro/pull/530/).
- Show the user a notification when a query(new or edited) is successfully saved (https://github.com/cbmi/cilantro/pull/536).
- Notify and provide instructions to the user when the results page is rendered and no columns are selected (https://github.com/cbmi/cilantro/pull/545).
**Bug Fixes**
- Fix issue where Apply/Update Filter buttons were not being disabled/enabled correctly (https://github.com/cbmi/cilantro/pull/532).
- Fix bug that allowed the user to export without selecting any columns (https://github.com/cbmi/cilantro/pull/539).
- Fix bug where control filters were not cleared of old attributes when new ones were set (https://github.com/cbmi/cilantro/pull/548).
- Fix bug where range controls would not disable the "Apply/Update Filter" button after clearing textbox (https://github.com/cbmi/cilantro/pull/551).
- Fix bug where users could save an empty view (https://github.com/cbmi/cilantro/pull/543).