@acrodata/gui
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

GUI

npm license

cover

A lightweight GUI library for Angular.

Quick links

Documentation | Playground

Compatibility

Angular @acrodata/gui
>=17.0.0 1.x
>=16.0.0 0.x

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' as mat;
@use '@acrodata/gui' as gui;

@include mat.core();

$theme: mat.define-light-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 { GuiModule, GuiFields } from '@acrodata/gui';

@Component({
  selector: 'your-app',
  template: `<gui-form [config]="config" [model]="model" [form]="form"></gui-form>`,
  standalone: true,
  imports: [GuiModule],
})
export class YourAppComponent {
  config: GuiFields = {
    title: {
      type: 'text',
      name: 'Title',
      default: 'I am title',
    },
  };
  model = {};
  form = new FormGroup({});
}

License

MIT

Package Sidebar

Install

npm i @acrodata/gui

Weekly Downloads

3

Version

1.0.0

License

MIT

Unpacked Size

628 kB

Total Files

64

Last publish

Collaborators

  • nzbin