3.0.0 • Published 12 months ago

ngx-lil-gui v3.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

ngx-lil-gui

Installation

npm install ngx-lil-gui

Usage

Add NgxLilGuiModule to your module imports which will expose 3 components

@NgModule({
  imports: [NgxLilGuiModule],
})
export class SomeModule {
}

ngx-lil-gui

This wraps a GUI instance. There are 3 ways to use ngx-lil-gui:

  1. ngx-lil-gui: This acts as a grouping folder with no immediate controllers underneath it.
  2. ngx-lil-gui[config]: You can pass a NgxLilGuiConfig object to the ngx-lil-gui component and the controllers will be built based on the config.
  3. ngx-lil-gui[object]: Build the GUI declaratively on the template. [object] is the object that this GUI controls.

Nested GUI

You can nest ngx-lil-gui and it will create a folder structure for you.

<div #divElement>
  <span #spanElement></span>
</div>

<ngx-lil-gui title="Group">
  <ngx-lil-gui title="DIV" [object]="divElement.style"></ngx-lil-gui>
  <ngx-lil-gui title="SPAN" [object]="spanElement.style"></ngx-lil-gui>
</ngx-lil-gui>

ngx-lil-gui-controller

This wraps a Controller.

<div #divElement></div>

<ngx-lil-gui title="DIV" [object]="divElement.style">
  <ngx-lil-gui-controller
    property="display"
    [controllerConfig]="{collection: ['block', 'flex', 'inline-flex']}"
  ></ngx-lil-gui-controller>
</ngx-lil-gui>

ngx-lil-gui-color

This wraps a Controller as well. It will display a color picker.

<div #divElement></div>

<ngx-lil-gui title="DIV" [object]="divElement.style">
  <ngx-lil-gui-color property="backgroundColor"></ngx-lil-gui-color>
</ngx-lil-gui>
3.0.0

12 months ago

2.3.0

1 year ago

2.2.0

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago