Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Assume that we need a custom data type, that will let the users store data through Umbraco content, in the following manner:
<textarea ng-model="model.value[0].name" placeholder="Name . . ."></textarea> <textarea ng-model="model.value[0].telephone" placeholder="Phone . . ."></textarea> <hr/> <textarea ng-model="model.value[1].name" placeholder="Name . . ."></textarea> <textarea ng-model="model.value[1].telephone" placeholder="Phone . . ."></textarea> ... <hr /> <textarea ng-model="model.value[n].name" placeholder="Name . . ."></textarea> <textarea ng-model="model.value[n].telephone" placeholder="Phone . . ."></textarea>
This code does not work, I'm just trying to ask you guys if something like this is achievable and how.
Thanks in advance.
Hi Burichan
Can you show all the code?
Alex
My (empty) controller:
angular.module("umbraco").controller("Example", function ($scope) { } );
And the manifest:
{ "propertyEditors": [{ "alias": "Example", "name": "Example", "editor": { "view": "~/App_Plugins/Example/property.html", "valueType": "JSON" } }], "javascript": [ "~/App_Plugins/Example/property.controller.js" ] }
Edit: The HTML contains nothing more than the markup on OP
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Custom data types & multi-valued $scope.model.value
Assume that we need a custom data type, that will let the users store data through Umbraco content, in the following manner:
This code does not work, I'm just trying to ask you guys if something like this is achievable and how.
Thanks in advance.
Hi Burichan
Can you show all the code?
Alex
My (empty) controller:
And the manifest:
Edit: The HTML contains nothing more than the markup on OP
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.