AnsweredAssumed Answered

Change a style for a programmatically created button

Question asked by soldous on Nov 22, 2016
Latest reply on Nov 23, 2016 by rscheitlin

Hello,

In my widget I have some buttons that are made in html and some buttons that are made programmatically in JS. And after that I have an inconsistent look. So I want to change theme for programmatically made buttons from claro to tundra.

In my css I imported the tundra.css like @import url("http://ajax.googleapis.com/ajax/libs/dojo/1.9.1/dijit/themes/tundra/tundra.css"); and in an empty div in html where buttons are made I put <div class="tundra" id="dropDownButtonContainer"></div> but the buttons look still different -in claro theme.
So how can I change the theme of these buttons?

 

Thanks for any answers

Outcomes