sDom Confusion

sDom Confusion

prashantkamdarprashantkamdar Posts: 2Questions: 0Answers: 0
edited January 2013 in Plug-ins
I am using 2 plugins : TableTools2.1.4 & ColResize

sDom for TableTools is T<"clear">lfrtip
sDom for ColResize is zrtSpi

How do I accomodate these 2 together?

I am really confused on the sDom and the ability to add new values.

So tomorrow, if I wish to add more parameters in sDom, how do I accomodate?


Help appreciated

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    edited January 2013
    Each letter in sDom (unless it has quotes around it) is a feature. So `t` is the table, `S` is Scroller, `T` is TableTools etc. Then for the features you want, in the order you want them to appear in the DOM, you just add them into the string. `Tt` would be TableTools followed by the table, `tT` would be the other way around etc.

    Allan
  • prashantkamdarprashantkamdar Posts: 2Questions: 0Answers: 0
    so for the above 2 plugins, will my sDom be like this:

    [code]T<"clear">lfrtipzrtSpi[/code]

    is this correct?
  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    No because the `t` appears twice there, and I doubt you want the table twice! (actually it wouldn't do that waylay). You've just concatenated the two strings together. You need to pick which features you want and construct a suitable string.

    Allan
  • prashantkamdarprashantkamdar Posts: 2Questions: 0Answers: 0
    that makes sense

    thank you!
This discussion has been closed.