-
-
Save pilucdes/14fe04286aa4ef0d8b0577fbb6279d8d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $scope.formAcceptedOptions = { | |
| bindingOptions: { | |
| formData: "newCompanyRegister", | |
| readOnly: false, | |
| showColonAfterLabel: false, | |
| labelLocation: "formAcceptedlabelLocation", | |
| minColWidth: 300, | |
| colCount: "2", | |
| width: "undefined" | |
| }, | |
| items: [{ | |
| dataField: "Company.Name", | |
| label: { text: "Company Name" }, | |
| validationRules: [{ | |
| type: "required", | |
| message: "Company name is required" | |
| }] | |
| }, { | |
| dataField: "Company.LegalName", | |
| label: { text: "Legal Name" }, | |
| }, "Address", "City", | |
| { | |
| dataField: "Company.PostalCode", | |
| label: { text: "Postal Code" }, | |
| editorOptions: { | |
| mask: "LNL NLN", | |
| maskRules: { | |
| "L": /[a-zA-Z]/, | |
| "N": /[0-9]/ | |
| } | |
| } | |
| }, | |
| { | |
| dataField: "Company.PhoneNumber", | |
| label: { text: "Phone Number" }, | |
| validationRules: [{ | |
| type: "required", | |
| message: "Phone number is required" | |
| }], | |
| editorOptions: { | |
| mask: "000-000-0000" | |
| } | |
| }, | |
| { | |
| dataField: "Company.PhoneTollFree", | |
| label: { text: "Toll Free" }, | |
| editorOptions: { | |
| mask: "000-000-0000" | |
| } | |
| }, | |
| { | |
| dataField: "Company.PhoneFax", | |
| label: { text: "Fax" }, | |
| editorOptions: { | |
| mask: "000-000-0000" | |
| } | |
| }, | |
| { | |
| dataField: "Company.ServerId", | |
| label: { text: "Server" }, | |
| editorType: "dxLookup", | |
| editorOptions: { | |
| dataSource: serverStore, | |
| displayExpr: "Name", | |
| valueExpr: "id", | |
| closeOnOutsideClick: true, | |
| popupHeight: 450, | |
| popupWidth: 320, | |
| animation: { | |
| show: { | |
| type: "fade", | |
| duration: 400, | |
| from: 0.1, | |
| to: 1 | |
| }, | |
| hide: { | |
| type: "fade", | |
| duration: 400, | |
| from: 1, | |
| to: 0.1 | |
| } | |
| }, | |
| title: "Select server", | |
| placeholder: "Select a server", | |
| itemTemplate: function (data) { | |
| return EasySolution.Templates.Servers(data); | |
| } | |
| }, | |
| validationRules: [{ | |
| type: "required", | |
| message: "Server is required" | |
| }] | |
| }] | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment