1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Merge pull request #13427 from calixteman/xfa_storage

XFA - Add a storage to save fields values
This commit is contained in:
Brendan Dahl 2021-05-28 12:10:08 -07:00 committed by GitHub
commit a6484c9861
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 110 additions and 30 deletions

View file

@ -941,11 +941,14 @@ class CheckButton extends XFAObject {
style.height = size;
}
const fieldId = this[$getParent]()[$getParent]()[$uid];
const input = {
name: "input",
attributes: {
class: "xfaCheckbox",
fieldId,
type: "radio",
id: `${fieldId}-radio`,
},
};
@ -1023,6 +1026,7 @@ class ChoiceList extends XFAObject {
const selectAttributes = {
class: "xfaSelect",
fieldId: this[$getParent]()[$getParent]()[$uid],
style,
};
@ -1249,6 +1253,7 @@ class DateTimeEdit extends XFAObject {
name: "input",
attributes: {
type: "text",
fieldId: this[$getParent]()[$getParent]()[$uid],
class: "xfaTextfield",
style,
},
@ -3012,6 +3017,7 @@ class NumericEdit extends XFAObject {
name: "input",
attributes: {
type: "text",
fieldId: this[$getParent]()[$getParent]()[$uid],
class: "xfaTextfield",
style,
},
@ -4550,6 +4556,7 @@ class TextEdit extends XFAObject {
html = {
name: "textarea",
attributes: {
fieldId: this[$getParent]()[$getParent]()[$uid],
class: "xfaTextfield",
style,
},
@ -4559,6 +4566,7 @@ class TextEdit extends XFAObject {
name: "input",
attributes: {
type: "text",
fieldId: this[$getParent]()[$getParent]()[$uid],
class: "xfaTextfield",
style,
},