code: function renderActionButtons() {
          $('.manage-resource-container .action-button').each(function (i, action) {
              action = $(action);
              var type = action.parent().hasClass(FOLDER_TYPE) ? FOLDER_TYPE : "";
              var id = action.attr("id"),
                  dataId = action.parent('.resource-item').attr("id");
  
              var actions = [
                  {
                      text: type ? "View" : "Download",
                      onClick: function (e) {
                          if (type) {
                              renderItemsByFolderId(dataId);
  
                          } else {
                              download(dataId);
                          }
                      },
                      permissionAction: "VIEW"
                  },
                  {
                      text: "Permission", data: {id: dataId},
                      onClick: function (e) {
                          openPermissions(dataId);
                      },
                      permissionAction: "PERMISSION"
                  },
                  {
                      text: "Rename", data: {id: dataId},
                      onClick: function (e) {
                          rename(dataId, true);
                      },
                      permissionAction: "UPDATE"
                  },
                  {
                      text: "Delete",
                      onClick: function (e) {
                          remove(dataId, type);
                      },
                      permissionAction: "DELETE"
                  }
              ];
              var opts = {
                  handlerId: id,
                  buttonSize: "mini",
                  actions: actions
              };
  
              var permissionConf = {
                  modelId: dataId,
                  modelName: modelName,
                  permissionSchemaKey: permissionSchemaKey
              };
  
              new Rocket.ActionButton(opts, permissionConf)
          });
      }
docs: render action button