@magic-xpa/angular 4.1300.0-dev4130.271 → 4.1300.0-dev4130.272
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.
|
@@ -3520,6 +3520,19 @@ class AccessorMagicService {
|
|
|
3520
3520
|
let vis = this.getProperty(controlId, HtmlProperties.Visible, rowId);
|
|
3521
3521
|
return vis ? 'visible' : 'hidden';
|
|
3522
3522
|
}
|
|
3523
|
+
/**
|
|
3524
|
+
* Returns whether a control is visible or not
|
|
3525
|
+
* @param controlId Id of control
|
|
3526
|
+
* @param rowId Id of row, if applicable
|
|
3527
|
+
* @returns true if the control is visible, false otherwise
|
|
3528
|
+
*/
|
|
3529
|
+
// mgIsVisible
|
|
3530
|
+
isVisible(controlId, rowId) {
|
|
3531
|
+
// The value is not always a boolean: getProperty() returns '' if the control has not sent its
|
|
3532
|
+
// Visible property yet, and undefined if the row does not exist. Comparing with === true turns
|
|
3533
|
+
// both into false. getVisible() behaves the same way - for those values it returns 'hidden'.
|
|
3534
|
+
return this.getProperty(controlId, HtmlProperties.Visible, rowId) === true;
|
|
3535
|
+
}
|
|
3523
3536
|
/**
|
|
3524
3537
|
* Returns alpha mask of a control
|
|
3525
3538
|
* @param controlId Id of control
|