0
{
"wrapper": "section",
"className": "row",
"hideExpression":"function($viewValue, $modelValue, scope){ return (scope.model['Application__c']['Years1__c'] && (parseFloat(scope.model['Application__c']['Years1__c']+'x.'+scope.model['Application__c']['Months1__c'])+parseFloat(scope.model['Application__c']['Years__c']+'.'+scope.model['Application__c']['Months__c']))>2); }" ,
"fieldGroup": [ {
"key": "Application__c.City_Prev1__c",
"type": "alphabet",
"hideExpression":"function($viewValue, $modelValue, scope){ return !scope.model['Application__c']['Years1__c'] }" ,
"className": "col-xs-7 col-sm-6 col-md-5 col-lg-5",
"templateOptions": {
"label": "City",
"required": true,
"maxlength": 20,
"objectName": "Application__c",
"fieldName": "City_Prev1__c"
}
}]
}
在上述formly JSON,如何能夠使隱藏表達爲函數或如何可以調用一個函數從外部角formly隱藏表達