MCPcopy Create free account
hub / github.com/Lobos/react-ui / getGrid

Function getGrid

src/utils/grids.js:30–43  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

28}
29
30export function getGrid(options) {
31 if (!options) {
32 return '';
33 }
34 if (typeof options === 'number') {
35 options = { width: options };
36 }
37
38 let { width, offset, responsive } = options;
39 let gridClass = generate(width, 'grid', responsive);
40 let offsetClass = generate(offset, 'offset', responsive);
41
42 return `${gridPre} ${gridPre}-1 ${gridClass} ${offsetClass}`;
43}
44
45function generate(width, type, responsive) {
46 if (!width || width <= 0) {

Callers 8

Upload.jsFile · 0.90
Grid.jsFile · 0.90
Select.jsFile · 0.90
renderMethod · 0.90
renderInlineMethod · 0.90
renderMethod · 0.90
renderMethod · 0.90
renderMethod · 0.90

Calls 1

generateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…