MCPcopy
hub / github.com/nwjs/nw.js / getComponentConfig

Function getComponentConfig

test/sanity/issue7197-load/js/chunk-vendors.6e82bc79.js:11628–11633  ·  view source on GitHub ↗
(cmpName)

Source from the content-addressed store, hash-verified

11626}; // Method to grab a config value for a particular component
11627
11628var getComponentConfig = function getComponentConfig(cmpName) {
11629 var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
11630 // Return the particular config value for key for if specified,
11631 // otherwise we return the full config (or an empty object if not found)
11632 return key ? config_getConfigValue("".concat(cmpName, ".").concat(key)) : config_getConfigValue(cmpName) || {};
11633}; // Convenience method for getting all breakpoint names
11634
11635var getBreakpoints = function getBreakpoints() {
11636 return config_getConfigValue('breakpoints');

Callers 6

button_computeClassFunction · 0.85
asyncMsgBoxFunction · 0.85
popover_parseBindingsFunction · 0.85
makeToastFunction · 0.85
tooltip_parseBindingsFunction · 0.85

Calls 1

config_getConfigValueFunction · 0.85

Tested by

no test coverage detected