2.5.1 • Published 10 months ago
@acrodata/gui v2.5.1
GUI
JSON powered GUI for configurable panels.
Quick links
Compatibility
| Angular | @acrodata/gui | Theming |
|---|---|---|
| >=18.0.0 | 2.x | M2, M3 |
| >=17.0.0 | 1.x | M2 |
| >=16.0.0 | 0.x | M2 |
Installation
npm install @angular/material @ng-matero/extensions @acrodata/gui --saveSetup
Define a theme with Angular Material's theming system. More about theming.
@use '@angular/material' as mat;
@use '@acrodata/gui' as gui;
@include mat.core();
$theme: mat.define-theme(...);
@include gui.all-control-themes($theme);🚨 If you use the Angular Material as default library and have included all component themes, there's no need to include the GUI themes anymore.
+ @include mat.all-component-themes($theme);
+ @include mtx.all-component-themes($theme);
- @include gui.all-control-themes($theme);Usage
import { Component } from '@angular/core';
import { GuiFields, GuiForm } from '@acrodata/gui';
@Component({
selector: 'your-app',
template: `<gui-form [config]="config" [model]="model" [form]="form" />`,
standalone: true,
imports: [GuiForm],
})
export class YourAppComponent {
config: GuiFields = {
title: {
type: 'text',
name: 'Title',
default: 'I am title',
},
};
model = {};
form = new FormGroup({});
}License
MIT
1.1.2
11 months ago
2.3.0
11 months ago
2.2.1
12 months ago
2.2.0
12 months ago
2.5.0
11 months ago
2.4.0
11 months ago
2.2.2
11 months ago
2.1.3
1 year ago
2.5.1
10 months ago
0.6.1
11 months ago
2.1.2
1 year ago
2.1.1
1 year ago
2.1.0
1 year ago
1.1.1
2 years ago
1.1.0
2 years ago
2.0.0
2 years ago
0.6.0
2 years ago
1.0.0
2 years ago
0.5.0
2 years ago
0.4.2
2 years ago
0.4.1
2 years ago
0.4.0
2 years ago
0.3.1
2 years ago
0.3.0
2 years ago
0.2.5
2 years ago
0.2.4
2 years ago
0.2.3
2 years ago
0.2.2
2 years ago
0.2.1
2 years ago
0.2.0
2 years ago
0.1.0
2 years ago