Allow custom layouts in the color picker and automatically choose a layout based on platform

This commit is contained in:
Keegan
2016-03-14 01:01:13 +11:00
parent 756cdc0d9e
commit 12b0ae9bd6
4 changed files with 397 additions and 94 deletions
+3 -2
View File
@@ -95,14 +95,15 @@ module.exports.config = function(types, autoRegister) {
* @param {boolean} [build=true] - run the build method on the result
* @param {boolean} [autoRegister=true]
* @param {Object} [settings] - settings to pass to constructor
* @param {Object} [meta] - override the meta
* @returns {ClayConfig}
*/
module.exports.clayConfig = function(types, build, autoRegister, settings) {
module.exports.clayConfig = function(types, build, autoRegister, settings, meta) {
var clayConfig = new ClayConfig(
settings || {},
module.exports.config(types, autoRegister),
$(HTML('<div>')),
module.exports.meta()
module.exports.meta(meta)
);
return build === false ? clayConfig : clayConfig.build();
};