Skip to content

chengcanmm77/gui

 
 

Repository files navigation

GUI

npm license

cover

A lightweight GUI library for Angular.

Quick links

Documentation | Playground

Installation

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

Setup

import { GuiModule } from '@acrodata/gui';

@NgModule({
  ...
  imports: [GuiModule, ...],
  ...
})
export class YourAppModule {
}

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);

Usage

import { Component } from '@angular/core';
import { GuiFields } from '@acrodata/gui';

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

License

MIT

About

A lightweight GUI library for Angular

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • TypeScript 61.4%
  • HTML 23.5%
  • SCSS 14.6%
  • Other 0.5%