How to use the @ng-dynamic-forms/core.DynamicCheckboxModel 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 / packages / ui-kendo / src / checkbox / dynamic-kendo-checkbox.component.spec.ts View on Github external
describe("DynamicKendoCheckboxComponent test suite", () => {

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

    beforeEach(async(() => {

        TestBed.configureTestingModule({

            imports: [
                ReactiveFormsModule,
                NoopAnimationsModule,
                TextMaskModule,
                DynamicFormsCoreModule
github mesemus / django-angular-dynamic-forms / demo / angular / src / django-angular-dynamic-forms / src / impl / django-form-content.component.ts View on Github external
name: external_validator.name,
                                args: {id: id, errors: this._external_errors}
                            },
                            min: ffc.min_value,
                            max: ffc.max_value
                        },
                        errorMessages: {
                            external_error: '{{external_error}}',
                            min: `Value must be in range ${ffc.min_value} - ${ffc.max_value}`,
                            max: `Value must be in range ${ffc.min_value} - ${ffc.max_value}`
                        }
                    },
                    field_config.layout
                );
            case SimpleFieldTypes.BOOLEAN:
                return new DynamicCheckboxModel(
                    {
                        id: id,
                        label: label,
                        required: field_config.required,
                        disabled: field_config.read_only,
                        validators: {
                            external_validator: {
                                name: external_validator.name,
                                args: {id: id, errors: this._external_errors}
                            }
                        },
                        errorMessages: {
                            external_error: '{{external_error}}'
                        }
                    },
                    field_config.layout
github mesemus / django-angular-dynamic-forms / projects / django-angular-dynamic-forms / src / impl / django-form-content.component.ts View on Github external
name: externalValidator.name,
                                args: {id, errors: this._externalErrors}
                            },
                            min: ffc.minValue,
                            max: ffc.maxValue
                        },
                        errorMessages: {
                            externalError: '{{externalError}}',
                            min: `Value must be in range ${ffc.minValue} - ${ffc.maxValue}`,
                            max: `Value must be in range ${ffc.minValue} - ${ffc.maxValue}`
                        }
                    },
                    mergeLayouts(fieldConfig.layout, extraLayout)
                );
            case SimpleFieldTypes.BOOLEAN:
                return new DynamicCheckboxModel(
                    {
                        id,
                        label,
                        required: fieldConfig.required,
                        disabled: fieldConfig.readOnly,
                        validators: {
                            externalValidator: {
                                name: externalValidator.name,
                                args: {id, errors: this._externalErrors}
                            }
                        },
                        errorMessages: {
                            externalError: '{{externalError}}'
                        }
                    },
                    mergeLayouts(fieldConfig.layout, extraLayout)
github udos86 / ng-dynamic-forms / projects / ng-dynamic-forms / ui-material / src / lib / checkbox / dynamic-material-checkbox.component.spec.ts View on Github external
describe("DynamicMaterialCheckboxComponent test suite", () => {

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

    beforeEach(async(() => {

        TestBed.configureTestingModule({

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

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

    beforeEach(async(() => {

        TestBed.configureTestingModule({

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

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

    beforeEach(async(() => {

        TestBed.configureTestingModule({

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

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

    beforeEach(async(() => {

        TestBed.configureTestingModule({

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

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

    beforeEach(async(() => {

        TestBed.configureTestingModule({

            imports: [
                ReactiveFormsModule,
                NoopAnimationsModule,
                TextMaskModule,
                CheckboxModule,
github mesemus / django-angular-dynamic-forms / angular / packages / django-angular-dynamic-forms / src / impl / django-form-content.component.ts View on Github external
name: external_validator.name,
                                args: {id: id, errors: this._external_errors}
                            },
                            min: ffc.min_value,
                            max: ffc.max_value
                        },
                        errorMessages: {
                            external_error: '{{external_error}}',
                            min: `Value must be in range ${ffc.min_value} - ${ffc.max_value}`,
                            max: `Value must be in range ${ffc.min_value} - ${ffc.max_value}`
                        }
                    },
                    merge_layouts(field_config.layout, extra_layout)
                );
            case SimpleFieldTypes.BOOLEAN:
                return new DynamicCheckboxModel(
                    {
                        id: id,
                        label: label,
                        required: field_config.required,
                        disabled: field_config.read_only,
                        validators: {
                            external_validator: {
                                name: external_validator.name,
                                args: {id: id, errors: this._external_errors}
                            }
                        },
                        errorMessages: {
                            external_error: '{{external_error}}'
                        }
                    },
                    merge_layouts(field_config.layout, extra_layout)