Skip to content

Latest commit

 

History

History
70 lines (53 loc) · 1.3 KB

File metadata and controls

70 lines (53 loc) · 1.3 KB

@acpaas-ui/ngx-layout

Description goes here.

Usage

import { ModalModule } from '@acpaas-ui/ngx-layout';

Documentation

Visit our documentation site for full how-to docs and guidelines

API

Name Default value Description
@Input() your: string; 'API' Goes here.

Example

import { ModalModule } from '@acpaas-ui/ngx-layout';

@NgModule({
    imports: [
        ModalModule
    ]
});

export class AppModule {};
// Controller code
constructor(
    private modalService: ModalService
) {}

public openModal() {
    this.modalService.openModal(
        AUIDemoModalComponent,
        {
            title: 'Modal ngx-logo',
            text: 'Are you sure you want to see a ngx-logo of this modal?',
        }, {
            confirm: () => this.doSomething(),
        }
    );
}

private doSomething() {
    return new Promise((resolve, reject) => {
        return resolve();
    });
}
<!-- HTML code -->
<button type="button" class="a-button"
    (click)="openModal()">
    Open modal
</button>

Contributing

Visit our Contribution Guidelines for more information on how to contribute.