Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Extend base for grid and row components to inherit style options

givanz040d1ad3b9db
diff --git a/public/js/vvvebjs/components-bootstrap5.js b/public/js/vvvebjs/components-bootstrap5.js
index 7e9d499..b44ad4f 100755
--- a/public/js/vvvebjs/components-bootstrap5.js
+++ b/public/js/vvvebjs/components-bootstrap5.js
@@ -724,7 +724,7 @@ Vvveb.Components.extend("_base", "html/tablebody", {
html: "<tbody><tr><td>Cell 1</td><td>Cell 2</td><td>Cell 3</td></tr></tbody>"
});
-Vvveb.Components.add("html/gridcolumn", {
+Vvveb.Components.extend("_base", "html/gridcolumn", {
name: "Grid Column",
image: "icons/grid_row.svg",
classesRegex: ["col-"],
@@ -762,7 +762,7 @@ Vvveb.Components.add("html/gridcolumn", {
},
}]
});
-Vvveb.Components.add("html/gridrow", {
+Vvveb.Components.extend("_base", "html/gridrow", {
name: "Grid Row",
image: "icons/grid_row.svg",
classes: ["row"],