/** * Created by cabbar on 28.03.2017. */ import { DnDatatableBase } from '../datatable/dn-datatable.base'; import { DnQuestionFormBase } from '../dynamic-form/dn-question/dn-question-form-base'; import { DnQuestionBase } from '../dynamic-form/dn-question/dn-question-base'; export class DnCrudBase { restUrl: string; searchForm: DnQuestionFormBase>; editForm: DnQuestionFormBase>; datatableOptions: DnDatatableBase; title: string; constructor(options: { restUrl?: string, searchForm?: DnQuestionFormBase>, editForm?: DnQuestionFormBase>, datatableOptions?: DnDatatableBase, title?: string; } = {}) { this.restUrl = options.restUrl; this.searchForm = options.searchForm; this.editForm = options.editForm; this.datatableOptions = options.datatableOptions; this.title = options.title; if (this.searchForm.submitButtonLabel) this.searchForm.submitButtonLabel = 'Ara'; if (this.editForm.submitButtonLabel) this.editForm.submitButtonLabel = 'Kaydet'; } }