Alfxjx / gui

A lightweight GUI library for Angular

Home Page:https://acrodata.github.io/gui/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

https://acrodata.github.io/gui/

License:MIT License


Languages

Language:TypeScript 61.4%Language:HTML 23.5%Language:SCSS 14.6%Language:JavaScript 0.4%Language:Shell 0.1%