Is there a way to allow users to edit the value of a field that is Vertex 3D? The stored value is in string format, but I want to present it to the user as three separate input fields for easier editing.
I am looking for a method to split the string by spaces and display each index in a separate input field. I attempted to use a filter for this purpose:
myApp.filter('split', function() {
return function(input, splitChar, splitIndex) {
return input.split(splitChar)[splitIndex];
}
});
<input type="text" ng-model="value | split:' ':0"/>
<input type="text" ng-model="value | split:' ':1"/>
<input type="text" ng-model="value | split:' ':2"/>
What would be the correct approach to achieve this functionality? Any advice is greatly appreciated!