Skip to content

acrodata/gui

Repository files navigation

GUI

npmlicense

cover

JSON powered GUI for configurable panels.

Quick links

Documentation | Playground

Compatibility

Angular@acrodata/guiTheming
>=203.xM2, M3
>=18 <202.xM2, M3
>=17 <181.x, 2.xM2
>=16 <170.xM2

Installation

npm install @angular/material @ng-matero/extensions @acrodata/gui --save

Setup

Define a theme with Angular Material's theming system. More about theming.

@use'@angular/material'asmat; @use'@acrodata/gui'asgui; @includemat.core(); $theme: mat.define-theme(...); @includegui.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" />`,imports: [GuiForm],})exportclassYourAppComponent{config: GuiFields={title: {type: 'text',name: 'Title',default: 'I am title',},};model={};form=newFormGroup({});}

License

MIT

Packages

No packages published

Contributors 2

  •  
  •