Angular Js

How to define angular js filter in Custom widget in UI designer.

Hello,

I need to create a simple custom widget with Angular Js.

I define the app controller inside the controller

app.filter('startFrom', function() {

return function(input, start) {
    start = +start;
    return input.slice(start);
}    
})

to

var startFrom= $filter('filter');

    startFrom([],  function(input, start) {
            if (input) {
        start = +start;
       return input.slice(start);
    }
    return [];
    }
); 

However, it seems not working.

The template code is

Angular js with custom widget : uib-pagination is not working.

Hello,
I created a simple custom widget with angular js.

The code is simple.
I added angular js asset.

however,** uib-pagination** didn't appear in UI preview.
I would like to know if I miss some part.
Any help appreciated .

Thanks.

templeate:

Show Rest API output inside a Html table and have sorting capability implemented for the table

Hi
My requirement is that I am returning JSON data from a REST Api call. I need to bind that Data to a table .
For this , I have used standard table widget from the designer . It works fine.
But a part of the Requirement is to be able to have the functionality to sort the data as well based on users choice of any parameter.
I have explored quite a few examples of this in different angular js tutorials but I am not sure how to implement the same in Bonitasoft custom widget.

How to enable cors in Bonita Tomcat ?

Hi ,

are there any file in bonita folders , that it allow me to change anything in order to comunicat with API REST, because i have this error:

XMLHttpRequest cannot load http://localhost:8080/bonita/loginservice. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access.

Also i have to say that when i put this code :

Notifications