Allow floats in the slider component and update docs

This commit is contained in:
Keegan
2016-03-11 01:07:17 +11:00
parent 1142d1adee
commit 878fea0340
11 changed files with 323 additions and 133 deletions
+7 -1
View File
@@ -158,7 +158,13 @@ function ClayConfig(settings, config, $rootContainer, meta) {
self.serialize = function() {
_checkBuilt('serialize');
_.eachObj(_itemsByAppKey, function(appKey, item) {
_settings[appKey] = item.get();
_settings[appKey] = {
value: item.get()
};
if (item.precision) {
_settings[appKey].precision = item.precision;
}
});
return _settings;
};