(spec: any)
| 55 | } |
| 56 | |
| 57 | update_input(spec: any): any { |
| 58 | let attributes = spec.attributes; |
| 59 | let idx = -1; |
| 60 | if ('target_value' in spec) { |
| 61 | this.element.find('button').each(function (index) { |
| 62 | if (JSON.parse($(this).val() as string) === spec.target_value) { |
| 63 | idx = index; |
| 64 | return false; |
| 65 | } |
| 66 | }); |
| 67 | } |
| 68 | this.update_input_helper(idx, attributes); |
| 69 | } |
| 70 | |
| 71 | get_value(): any { |
| 72 | return this.submit_value; |
nothing calls this directly
no test coverage detected