Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

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,

<img src=" />

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,

<img src=" />

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
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • 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
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(