Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

Adjusting Height by DataTables DropDown Menu Content


Hi Brother,
I am using Metronic Theme Demo 7 Package as v8.1.1,
I am using DataTables Plugin on Tablespace,
I Add Some Functions With DropDown To The Last Side Of The Lines,
I'm Having Only One Problem,
When there is a single line of data, when I click on the dropdown menu, the menu appears at the bottom, the scroll opens on the right,



In This Situation, The User Cannot Clearly See That There Is An Options Menu,
I Have To Scroll The Scroll Bar Below For Other Options,



How Can I Automatically Expand and Shrink Table Height Based on DropDown Menu Content ?
or How Can I Show the DropDown Menu Outside the Table ?


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (1)


Hi,

Please try to check this datatable example. As you can see in the actions menu the dropdown is shown over the table. In your case, this kind of dropdown menu mode would be the optimal solution as it does not depend don't the row and cell height. You can check the above example JS code in src/js/custom/apps/ecommerce/catalog/products.js.

For any further help we will need to see your datatable and the dropdown menu in action so please provide us a test link to your developing app.

Regards.


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(