Skip to content

How to add a new tabitem in txt2img_header? #216

Answered by anapnoe
samuel25gh asked this question in Q&A
Discussion options

You must be logged in to vote

Hi you should look at the template-txt2img-params.html
for the button add one and define the tabview-tabItemId and the tabGroup
tabItemId acts as a target container and tabGroup as a shorthand iterator to show the active one from that group

Create a button entry to the layout

<button title="Parameters" tabItemId="#txt2img_params_tabitem" tabGroup="txt2img" id="txt2img_params" class="xtabs-tab shrink">
<div class="mask-icon icon-equalize">
</div>
<span>Params</span>
</button>

Create a view to display your module

 <div id="txt2img_tabitem_group" class="flexbox col">
    <div id="txt2img_params_tabitem" class="xtabs-item">
        <div data-selector="#txt2img_script_container" data-parent-s…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by samuel25gh
# for free to join this conversation on GitHub. Already have an account? # to comment
Category
Q&A
Labels
None yet
2 participants