Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7986309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:49:19+00:00 2026-06-04T11:49:19+00:00

I want to add a refresh button to my tables at the bottom of

  • 0

I want to add a “refresh” button to my tables at the bottom of the table. But I just started using datatables and its a bit confusing as is the “sDom” part where it says I can do this through that means but the description is vague at best.

"sDom": '<"top"i>rt<"bottom"flp><"clear">'

is the datatables.net example, but I dunno how to make heads or tails of that and all I want to do is one simple thing.

Or is there an outside of “sDom” that would be better suited for what I want to do?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T11:49:21+00:00Added an answer on June 4, 2026 at 11:49 am

    Here’s a live example of a modified sDom.

    http://live.datatables.net/onaqul/edit#javascript,html,live

    Here we’re injecting a div called <div id="refresh"></div> with the structrue <"#refresh">.

        $('#example').dataTable({
            "sDom": '<"top"i>rt<"bottom"<"#refresh">flp><"clear">'
          });
    

    If you inspect the generated dom in the example,
    you can see <div id="refresh"></div> got inserted inside of <div class="bottom"></div>.

    I think much depends on (1) how your specific table has its footer elements layed out, (2) where you decide to inject your specific element using sDom, and (3) how you style the element(s) with your CSS.

    Alternatively, you could have a button created outside of the datatables environment, but use jquery to append or prepend your button to one of the dom elements datatables creates.

    Hope this is a useful starting point.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to add a refresh button in UINavigationBar that refreshes the entire table
I want add UIGestureRecognizerDelegate to UIWebView,but failed. if [self.view addsubView:webView]; So UIWebView is ok,but
I want to add Gon ( https://github.com/gazay/gon ) to my activeadmin but I need
I have the Table with rows and when I click on add button the
Hi my app contains a refresh button,onclick of that I want to display list
I want to add a search box for getting started example (Hello, World) on
Using JavaScript i have the refresh button in my parent window, when i click
i want to add one more tool bar with different buttons in the bottom
A Refresh button/method in an Excel Add-In needs to be invoked via an external
I want to reload(refresh) my mainviewcontroller after changes. I add some data to data

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.