Lil-GUI wrapper for Angular
npm install ngx-lil-guinpm install ngx-lil-gui
Add NgxLilGuiModule to your module imports which will expose 3 components
``ts`
@NgModule({
imports: [NgxLilGuiModule],
})
export class SomeModule {
}
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.ngx-lil-gui[config]
2. : You can pass a NgxLilGuiConfig object to the ngx-lil-gui component and the controllersngx-lil-gui[object]
will be built based on the config.
3. : 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.
`html
`
This wraps a Controller.
`html
[controllerConfig]="{collection: ['block', 'flex', 'inline-flex']}"
>
`
This wraps a Controller as well. It will display a color picker.
`html
``