Custom button in list view in version 15

I want to Add a custom button in in List View. Previously I added custom in Version14 using this code:

function ButtonFunction(listview) {

frappe.listview_settings["Item"] = {
  refresh: function (listview) {"Button Name", function () {

And in

doctype_list_js = {"Item": "public/js/item_button.js"}

Now its not working in Version-15. How to make it work? How can I add custom button in list view in V15?

Did you migrate the site? if not then migrate the site. and also build the app (bench build --force).

Tested your code, so it’s worked properly.


@NCP, Thanks Man. Its Working now.