(widget: RNInputDialog, newProps: InputDialogProps, oldProps: InputDialogProps)
| 24 | } |
| 25 | |
| 26 | function setInputDialogProps(widget: RNInputDialog, newProps: InputDialogProps, oldProps: InputDialogProps) { |
| 27 | const setter: InputDialogProps = { |
| 28 | set cancelButtonText(cancelButtonText: string){ |
| 29 | widget.setCancelButtonText(cancelButtonText) |
| 30 | }, |
| 31 | set comboBoxEditable(comboBoxEditable: boolean) { |
| 32 | widget.setComboBoxEditable(comboBoxEditable); |
| 33 | }, |
| 34 | set doubleDecimals(doubleDecimals: number){ |
| 35 | widget.setDoubleDecimals(doubleDecimals) |
| 36 | }, |
| 37 | set doubleMax(doubleMax: number){ |
| 38 | widget.setDoubleMaximum(doubleMax) |
| 39 | }, |
| 40 | set doubleMin(doubleMin: number){ |
| 41 | widget.setDoubleMinimum(doubleMin) |
| 42 | }, |
| 43 | set doubleStep(doubleStep: number){ |
| 44 | widget.setDoubleStep(doubleStep) |
| 45 | }, |
| 46 | set doubleValue(doubleValue: number){ |
| 47 | widget.setDoubleValue(doubleValue) |
| 48 | }, |
| 49 | set inputMode(inputMode: InputMode){ |
| 50 | widget.setInputMode(inputMode) |
| 51 | }, |
| 52 | set intMax(intMax: number){ |
| 53 | widget.setIntMaximum(intMax) |
| 54 | }, |
| 55 | set intMin(intMi: number){ |
| 56 | widget.setIntMinimum(intMi) |
| 57 | }, |
| 58 | set intStep(intStep: number){ |
| 59 | widget.setIntStep(intStep) |
| 60 | }, |
| 61 | set intValue(intValue: number){ |
| 62 | widget.setIntValue(intValue) |
| 63 | }, |
| 64 | set labelText(labelText: string){ |
| 65 | widget.setLabelText(labelText) |
| 66 | }, |
| 67 | set okButtonText(okButtonText: string){ |
| 68 | widget.setOkButtonText(okButtonText) |
| 69 | }, |
| 70 | set options(options: InputDialogOptions){ |
| 71 | widget.setOptions(options) |
| 72 | }, |
| 73 | set textEchoMode(textEchoMode: EchoMode){ |
| 74 | widget.setTextEchoMode(textEchoMode) |
| 75 | }, |
| 76 | set textValue(textValue: string){ |
| 77 | widget.setTextValue(textValue) |
| 78 | }, |
| 79 | }; |
| 80 | Object.assign(setter, newProps); |
| 81 | setDialogProps(widget, newProps, oldProps); |
| 82 | } |
| 83 |
no test coverage detected