How to use the @ng-dynamic-forms/core.DynamicTextAreaModel function in @ng-dynamic-forms/core

To help you get started, we’ve selected a few @ng-dynamic-forms/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github udos86 / ng-dynamic-forms / projects / ng-dynamic-forms / ui-ionic / src / lib / textarea / dynamic-ionic-textarea.component.spec.ts View on Github external
describe("DynamicIonicTextAreaComponent test suite", () => {

    let testModel = new DynamicTextAreaModel({id: "textarea"}),
        formModel = [testModel],
        formGroup: FormGroup,
        fixture: ComponentFixture,
        component: DynamicIonicTextAreaComponent,
        debugElement: DebugElement,
        testElement: DebugElement;

    beforeEach(async(() => {

        TestBed.configureTestingModule({

            imports: [
                ReactiveFormsModule,
                NoopAnimationsModule,
                IonicModule,
                TextMaskModule,
github mesemus / django-angular-dynamic-forms / demo / angular / src / django-angular-dynamic-forms / src / impl / django-form-content.component.ts View on Github external
list: sfc.autocomplete_list
                    },
                    field_config.layout
                );
                if (sfc.autocomplete_list ||
                    sfc.autocomplete_url) {
                    this.autocompleters.push(
                        new AutoCompleter(this.httpClient, this.error_service,
                            sfc.autocomplete_list,
                            sfc.autocomplete_url,
                            model));
                }
                return model;
            }
            case SimpleFieldTypes.TEXTAREA:
                return new DynamicTextAreaModel(
                    {
                        id: id,
                        placeholder: label,
                        required: field_config.required,
                        disabled: field_config.read_only,
                        rows: 5,
                        validators: {
                            external_validator: {
                                name: external_validator.name,
                                args: {id: id, errors: this._external_errors}
                            },
                            maxLength: (field_config as TextAreaFieldConfig).max_length,
                            minLength: (field_config as TextAreaFieldConfig).min_length
                        },
                        errorMessages: {
                            external_error: '{{external_error}}'
github udos86 / ng-dynamic-forms / projects / ng-dynamic-forms / ui-bootstrap / src / lib / textarea / dynamic-bootstrap-textarea.component.spec.ts View on Github external
describe("DynamicBootstrapTextAreaComponent test suite", () => {

    let testModel = new DynamicTextAreaModel({id: "textarea"}),
        formModel = [testModel],
        formGroup: FormGroup,
        fixture: ComponentFixture,
        component: DynamicBootstrapTextAreaComponent,
        debugElement: DebugElement,
        testElement: DebugElement;

    beforeEach(async(() => {

        TestBed.configureTestingModule({

            imports: [
                ReactiveFormsModule,
                NoopAnimationsModule,
                TextMaskModule,
                DynamicFormsCoreModule
github mesemus / django-angular-dynamic-forms / angular / packages / django-angular-dynamic-forms / src / impl / django-form-content.component.ts View on Github external
list: sfc.autocomplete_list
                    },
                    merge_layouts(field_config.layout, extra_layout)
                );
                if (sfc.autocomplete_list ||
                    sfc.autocomplete_url) {
                    this.autocompleters.push(
                        new AutoCompleter(this.httpClient, this.error_service,
                            sfc.autocomplete_list,
                            sfc.autocomplete_url,
                            model));
                }
                return model;
            }
            case SimpleFieldTypes.TEXTAREA:
                return new DynamicTextAreaModel(
                    {
                        id: id,
                        placeholder: label,
                        required: field_config.required,
                        disabled: field_config.read_only,
                        rows: 5,
                        validators: {
                            external_validator: {
                                name: external_validator.name,
                                args: {id: id, errors: this._external_errors}
                            },
                            maxLength: (field_config as TextAreaFieldConfig).max_length,
                            minLength: (field_config as TextAreaFieldConfig).min_length
                        },
                        errorMessages: {
                            external_error: '{{external_error}}'
github udos86 / ng-dynamic-forms / projects / ng-dynamic-forms / ui-foundation / src / lib / textarea / dynamic-foundation-textarea.component.spec.ts View on Github external
describe("DynamicFoundationTextAreaComponent test suite", () => {

    let testModel = new DynamicTextAreaModel({id: "textarea"}),
        formModel = [testModel],
        formGroup: FormGroup,
        fixture: ComponentFixture,
        component: DynamicFoundationTextAreaComponent,
        debugElement: DebugElement,
        testElement: DebugElement;

    beforeEach(async(() => {

        TestBed.configureTestingModule({

            imports: [
                ReactiveFormsModule,
                NoopAnimationsModule,
                TextMaskModule,
                DynamicFormsCoreModule
github udos86 / ng-dynamic-forms / projects / ng-dynamic-forms / ui-basic / src / lib / textarea / dynamic-basic-textarea.component.spec.ts View on Github external
describe("DynamicBasicTextAreaComponent test suite", () => {

    let testModel = new DynamicTextAreaModel({id: "textarea"}),
        formModel = [testModel],
        formGroup: FormGroup,
        fixture: ComponentFixture,
        component: DynamicBasicTextAreaComponent,
        debugElement: DebugElement,
        testElement: DebugElement;

    beforeEach(async(() => {

        TestBed.configureTestingModule({

            imports: [
                ReactiveFormsModule,
                NoopAnimationsModule,
                TextMaskModule,
                DynamicFormsCoreModule
github udos86 / ng-dynamic-forms / packages / ui-ng-bootstrap / src / textarea / dynamic-ng-bootstrap-textarea.component.spec.ts View on Github external
describe("DynamicNGBootstrapTextAreaComponent test suite", () => {

    let testModel = new DynamicTextAreaModel({id: "textarea"}),
        formModel = [testModel],
        formGroup: FormGroup,
        fixture: ComponentFixture,
        component: DynamicNGBootstrapTextAreaComponent,
        debugElement: DebugElement,
        testElement: DebugElement;

    beforeEach(async(() => {

        TestBed.configureTestingModule({

            imports: [
                ReactiveFormsModule,
                NoopAnimationsModule,
                TextMaskModule,
                DynamicFormsCoreModule