now I have own tab in developing plugin.
I am going to add one more tab(BB_Motor). so I did:
__init__.py:
def get_template_configs(self):
return [
dict(type="settings", custom_bindings=True),
dict(type='tab', custom_bindings=True, template='BB_Fan.jinja2'),
dict(type='tab', custom_bindings=True, template='BB_Motor.jinja2')
]
def get_assets(self):
return dict(
js=["js/BB_Fan.js"],
css=["css/BB.css"]
)
BB_Motor.jinja2:
<h3>Test</h3>
result Image I captured a part of BB_Fan(first tab)
it appears BB_Fan tab not in BB_Motor tab. I could see BB_Motor tab in drop down but when I clicked there is no response.
what should I do? what am I missing?