Skip to main content

Generic Layout

📘 Developer Guide

With the Layout Brick, you can easily add custom CSS-Code to your dashboards.

Use the HTML Brick to create a powerful combination of HTML and CSS on your Dashboards.


🔁 Example

Designer

Screenshot From 2025-10-09 15-32-04.png

Runtime

image.png


⚙️ Configuration Properties

Config
Key Label Description Default Value
classes Classes which will be appended onto the layout DOM-Element You can define multiple classes via delimiting by spaces
string
-
classDefintionCode The CSS Code The CSS Code must be provided via string
string
-
classDefintionScope The Scope where CSS will be applied You can specify the scope of the provided CSS Code. children affects only child bricks, while global applies to the entire Dashboard.
children global
children

🛠️ Usage

Designer

(Use the build in configuration Inputs and CSS-Editor in the right Side-Nav)

image.png

image.png

Config

(Edit the whole configuration of the Layout to your liking)

Screenshot From 2025-10-09 15-32-46.png


⌨️ Programmatical Data

How to change your CSS via Scripting
// ⚙️ Retrieve the current configuration of the Brick
const config = fyzBrick.cRef.getConfig();

// 💱 Modify and merge the config to change to the desired layout/behavior
fyzBrick.cRef.mergeConfig({
	...config, 
	classDefintionCode: `
	fyz-brick-generic-layout {
		display: flex;
		justify-content: center;
		align-items: center;
		height: 100%;
	}

	.layout-class {
		color: yellow;
	}

	h1 {
		font-weight: 900;
	}
	`
})