What's the right way to get DataType in property editor WebApi?
Is there a $scope property I can use to find the DataType associated with the current editor?
I want to send it to WebApi controller so it can load prevalues in a tamper-free manner, as compared to sending values from $scope.model.config that can be set to anything on the client side.
I see there is an $scope.model.id property which seems to be an id from cmsPropertyData -- but is there a simpler solution?
What's the right way to get DataType in property editor WebApi?
Is there a
$scope
property I can use to find the DataType associated with the current editor?I want to send it to WebApi controller so it can load prevalues in a tamper-free manner, as compared to sending values from
$scope.model.config
that can be set to anything on the client side.I see there is an
$scope.model.id
property which seems to be anid
fromcmsPropertyData
-- but is there a simpler solution?is working on a reply...