mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-28 21:28:50 +01:00
docs(download): add download button with hubspot form
This commit is contained in:
parent
b232c95a6e
commit
70c407dac4
15 changed files with 302 additions and 25 deletions
|
|
@ -0,0 +1,36 @@
|
|||
/**
|
||||
* @license
|
||||
* Copyright Akveo. All Rights Reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*/
|
||||
|
||||
import { AfterViewInit, Component, Inject } from '@angular/core';
|
||||
import { NB_WINDOW, NbDialogRef } from '@nebular/theme';
|
||||
|
||||
@Component({
|
||||
selector: 'ngx-download-form',
|
||||
templateUrl: './download-form.component.html',
|
||||
styleUrls: ['./download-form.component.scss'],
|
||||
})
|
||||
export class DownloadFormComponent implements AfterViewInit {
|
||||
|
||||
constructor(@Inject(NB_WINDOW) private window,
|
||||
protected ref: NbDialogRef<DownloadFormComponent>) {
|
||||
}
|
||||
|
||||
ngAfterViewInit() {
|
||||
hbspt.forms.create({
|
||||
portalId: '2452262',
|
||||
formId: '93007d7b-5f11-4dd8-bcfd-f8b99d31f31e',
|
||||
target: '#hubspotForm',
|
||||
submitButtonClass: 'btn',
|
||||
css: '',
|
||||
cssClass: 'custom-form',
|
||||
redirectUrl: 'https://github.com/akveo/ngx-admin',
|
||||
});
|
||||
}
|
||||
|
||||
closeDialog() {
|
||||
this.ref.close();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue