def generate_delete_button record_id
        return unless @args[:index_url]
        url = @args[:index_url].end_with?('/') ? "#{@args[:index_url].gsub(/\?.*/, '')}#{record_id}" : "#{@args[:index_url].gsub(/\?.*/, '')}/#{record_id}"
        return LatoCore::Elements::Button::Cell.new(label: LANGUAGES[:lato_core][:mixed][:delete], url: url, method: 'delete',
        icon: 'trash', style: 'danger', confirmation: {
          message: LANGUAGES[:lato_core][:mixed][:default_delete_message],
          positive_response: LANGUAGES[:lato_core][:mixed][:default_delete_positive_response],
          negative_response: LANGUAGES[:lato_core][:mixed][:default_delete_negative_response]
        })
      end
def generate_delete_button record_id
        return unless @args[:index_url]
        url = @args[:index_url].end_with?('/') ? "#{@args[:index_url].gsub(/\?.*/, '')}#{record_id}" : "#{@args[:index_url].gsub(/\?.*/, '')}/#{record_id}"
        return LatoCore::Elements::Button::Cell.new(label: LANGUAGES[:lato_core][:mixed][:delete], url: url, method: 'delete',
        icon: 'trash', style: 'danger', confirmation: {
          message: LANGUAGES[:lato_core][:mixed][:default_delete_message],
          positive_response: LANGUAGES[:lato_core][:mixed][:default_delete_positive_response],
          negative_response: LANGUAGES[:lato_core][:mixed][:default_delete_negative_response]
        })
      end
This function generate the delete button for a record.