Extend header with button(s) #358
-
I would like to 'integrate' two simple buttons inside the table header so they don't take extra vertical space in the page. In a way related to #321 Any official options? My unofficial one (do NOT use): document.querySelector('.datatable-search').insertAdjacentHTML('afterend',
`<div class="float-end">
<div class="m-1 me-2">
<button type="button" class="btn btn-sm btn-outline-primary">Button 1</button>
<button type="button" class="btn btn-sm btn-outline-primary">Button 2</button>
</div>
</div>`
); |
Beta Was this translation helpful? Give feedback.
Answered by
johanneswilm
Dec 8, 2023
Replies: 1 comment 1 reply
-
Hey, yes this should be easily achievable by specifying a custom template. Please don't do what you did "unofficially" there as it is likely to break sdt. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
johanneswilm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, yes this should be easily achievable by specifying a custom template.
Please don't do what you did "unofficially" there as it is likely to break sdt.