gd-bs 6.6.54 → 6.6.56

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-bs",
3
- "version": "6.6.54",
3
+ "version": "6.6.56",
4
4
  "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
5
  "main": "build/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -177,6 +177,7 @@ export interface IFormRow {
177
177
  className?: string;
178
178
  isAutoSized?: boolean;
179
179
  isCentered?: boolean;
180
+ isDisabled?: boolean;
180
181
  isReadOnly?: boolean;
181
182
  columns?: Array<IFormColumn>;
182
183
  }
@@ -51,8 +51,13 @@ export class FormRow {
51
51
  for (let i = 0; i < columns.length; i++) {
52
52
  let columnProps = columns[i];
53
53
 
54
- // See if the is read only property is set
55
- if (typeof (this.props.isReadOnly) === "boolean") {
54
+ // See if the is disabled property is set, if the control doesn't have this property set
55
+ if (typeof (this.props.isDisabled) === "boolean" && typeof (columnProps.control.isDisabled) !== "boolean") {
56
+ columnProps.control.isDisabled = this.props.isDisabled;
57
+ }
58
+
59
+ // See if the is read only property is set, if the control doesn't have this property set
60
+ if (typeof (this.props.isReadOnly) === "boolean" && typeof (columnProps.control.isReadonly) !== "boolean") {
56
61
  columnProps.control.isReadonly = this.props.isReadOnly;
57
62
  }
58
63