react-form-builder-more-flexibility 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -619,13 +619,27 @@ var FormElementsEdit = /*#__PURE__*/function (_React$Component) {
|
|
|
619
619
|
htmlFor: "placeholder"
|
|
620
620
|
}, /*#__PURE__*/_react["default"].createElement(_IntlMessages["default"], {
|
|
621
621
|
id: "place-holder-text-label"
|
|
622
|
-
})), /*#__PURE__*/_react["default"].createElement(
|
|
622
|
+
})), /*#__PURE__*/_react["default"].createElement("input", {
|
|
623
623
|
type: "text",
|
|
624
624
|
className: "form-control",
|
|
625
625
|
id: "placeholder",
|
|
626
626
|
defaultValue: this.props.element.placeholder,
|
|
627
627
|
onBlur: this.updateElement.bind(this),
|
|
628
628
|
onChange: this.editElementProp.bind(this, 'placeholder', 'value')
|
|
629
|
+
})), this.props.element.show_custom_name && /*#__PURE__*/_react["default"].createElement("div", {
|
|
630
|
+
className: "form-group"
|
|
631
|
+
}, /*#__PURE__*/_react["default"].createElement("label", {
|
|
632
|
+
className: "control-label",
|
|
633
|
+
htmlFor: "custom_name"
|
|
634
|
+
}, /*#__PURE__*/_react["default"].createElement(_IntlMessages["default"], {
|
|
635
|
+
id: "custom-name-label"
|
|
636
|
+
})), /*#__PURE__*/_react["default"].createElement("input", {
|
|
637
|
+
type: "text",
|
|
638
|
+
className: "form-control",
|
|
639
|
+
id: "custom_name",
|
|
640
|
+
defaultValue: this.props.element.custom_name,
|
|
641
|
+
onBlur: this.updateElement.bind(this),
|
|
642
|
+
onChange: this.editElementProp.bind(this, 'custom_name', 'value')
|
|
629
643
|
})), this.props.element.showDescription && /*#__PURE__*/_react["default"].createElement("div", {
|
|
630
644
|
className: "form-group"
|
|
631
645
|
}, /*#__PURE__*/_react["default"].createElement("label", {
|
|
@@ -91,6 +91,7 @@
|
|
|
91
91
|
"easy": "Easy",
|
|
92
92
|
"difficult": "Difficult",
|
|
93
93
|
"drop-zone": "Dropzone",
|
|
94
|
+
"custom-name-label": "A Name To Give This Input That Will Show Up In Data Retrieval",
|
|
94
95
|
|
|
95
96
|
"message.is-required": "is required",
|
|
96
97
|
"message.was-answered-incorrectly": "was answered incorrectly",
|
|
@@ -79,6 +79,7 @@
|
|
|
79
79
|
"difficult": "Difficult",
|
|
80
80
|
|
|
81
81
|
"drop-zone": "Khu vực kéo thả",
|
|
82
|
+
"custom-name-label": "A Name To Give This Input That Will Show Up In Data Retrieval",
|
|
82
83
|
|
|
83
84
|
"message.is-required": "không được bỏ trống",
|
|
84
85
|
"message.was-answered incorrectly": "đã trả lời sai",
|
package/lib/toolbar.js
CHANGED
|
@@ -465,6 +465,8 @@ var Toolbar = /*#__PURE__*/function (_React$Component) {
|
|
|
465
465
|
elementOptions.bold = false;
|
|
466
466
|
elementOptions.italic = false;
|
|
467
467
|
}
|
|
468
|
+
elementOptions.show_custom_name = item.show_custom_name;
|
|
469
|
+
elementOptions.custom_name = item.custom_name;
|
|
468
470
|
if (item.canHaveAnswer) {
|
|
469
471
|
elementOptions.canHaveAnswer = item.canHaveAnswer;
|
|
470
472
|
}
|