Disabling ui-widget-header/footer

Disabling ui-widget-header/footer

NFLineastNFLineast Posts: 11Questions: 0Answers: 0
edited August 2011 in General
Hi All,

Is there a way to define (within the call to initialize a table) that the table toolbar is not part of a DataTable?

This is the div that I would like to ommit (but only on certain tables)

[code][/code]

And the footer

[code][/code]

Any help is much appreciated!

Replies

  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    can you give more context? I'm not sure what the "toolbar" is and I've only seen these css classes in the themeroller example page and I don't think it was part of the table.
  • NFLineastNFLineast Posts: 11Questions: 0Answers: 0
    edited August 2011
    Screen shot

    http://belmaati.com/pics/uitoolbar.jpg
  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    I think you'll need to use jquery/css to remove or hide those. find out (in your source) which DOM elements they are in, then use a selector to isolate them and hide() them... ?
  • NFLineastNFLineast Posts: 11Questions: 0Answers: 0
    Could you provide a mock code example for that please? When I use the inspector to isolate those elements, then it comes up with the divs I listed above.
  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    it's hard to write code without seeing your HTML source, but if you find something like:

    [code]


    ....


    [/code]

    the something like this might work:
    [code]
    $(".fg_toolbar", "#table_container").hide();
    [/code]

    you'll need to experiment, because i really don't know JQ UI css and system at all.
  • NFLineastNFLineast Posts: 11Questions: 0Answers: 0
    Thanks so much for your help. That's very kind of you. I'll give it a whirl!
This discussion has been closed.