sDom Positioning

sDom Positioning

TRaymondTRaymond Posts: 3Questions: 0Answers: 0
edited February 2013 in TableTools
Okay, my brain is officially fried. Can someone help me figure out how to structure my sDom so that the Excel button (only button) is next to (the left) of the search box?

My Current sDom is:

[code]


"sDom": 'T<"clear"><"fg-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix"lfr>t<"fg-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix"ip>'


[/code]


See the current result here:
http://imgh.us/grid1.png

Thanks in advance!

TRaymond

Replies

  • TRaymondTRaymond Posts: 3Questions: 0Answers: 0
    Anyone? bump.
  • allanallan Posts: 63,680Questions: 1Answers: 10,498 Site admin
    On the right next to the search box? Just add `div.DTTT_container { float: right }` to your CSS?

    Allan
  • TRaymondTRaymond Posts: 3Questions: 0Answers: 0
    edited February 2013
    Allan, thanks for the response. Still not giving me what I'm looking for. I'm trying to get the 'Excel' button to the left of the search box inside the blue header. See the current result with your changes implemented:

    http://imgh.us/Test2_1.png
  • allanallan Posts: 63,680Questions: 1Answers: 10,498 Site admin
    edited February 2013
    Then put the `T` option in your sDom configuration inside the container, rather than outside of it:

    [code]
    "sDom": '<"fg-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix"lfrT>t<"fg-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix"ip>'
    [/code]

    Allan
This discussion has been closed.