I'm trying to develop a plugin that works with nuPicker.
My aim is accessing the current picked items and for-each picked item I want to enter a custom description.
By using editorState.getCurrent() I can access the tabs and picked items.
So, I can access editorState as a service in my Angular controller. But when I change the picked items, editorState.getCurrent() still gives me the old state.
Here is my controller code
angular.module("umbraco").controller("My.ExtendedFiltersController", function ($scope,$rootScope, editorState) {
$scope.editorState = editorState;
// this is a simple function that I want to get the state inside.
$scope.onChange = function () {
console.log($scope.editorState.getCurrent());
}
})
So, can any body help me please how can I get the selected items in nuPicker, I'm checking umbracotv videos but there is no useful information about my problem.
How to access current editorState in my plugin
Hello,
I'm trying to develop a plugin that works with nuPicker.
My aim is accessing the current picked items and for-each picked item I want to enter a custom description.
By using editorState.getCurrent() I can access the tabs and picked items.
So, I can access editorState as a service in my Angular controller. But when I change the picked items, editorState.getCurrent() still gives me the old state.
Here is my controller code
So, can any body help me please how can I get the selected items in nuPicker, I'm checking umbracotv videos but there is no useful information about my problem.
Thanks
Are you leaving me alone?
is working on a reply...