Description
Show or hideWhen element based on expression passed to it.Usage
as attributeParameters
| Param | Type | Details |
|---|---|---|
| hide-when | expression | Expression to evaluate. |
Example
Source
Result

Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Action required: Upgrade to Fusion 5.17.2 to apply urgent security patches. Lucidworks Search clients will be upgraded automatically.
<ANY hide-when="{expression}">
...
</ANY>
| Param | Type | Details |
|---|---|---|
| hide-when | expression | Expression to evaluate. |
<p><a href="javascript:void(0);" ng-click="alert()" styling="button">{{foo ? 'Show' : 'Hide'}}!</a></p>
<h3 hide-when="foo" id="example_hello-world">Hello World</h3>
angular.module('lightning')
.controller('ExampleController', ['$scope','$timeout', function($scope,$timeout) {
$scope.foo = false;
$scope.alert = function(){
$scope.foo = !$scope.foo
};
}]);

Was this page helpful?