I am looking to add a custom CSS Class to a dijit/layout/ContentPane in order to apply my own styling.
This is because I have multiple tabs in a TabContainer where my ContentPanes are located and I want to avoid duplicating borders. Adding a border around the Tab will create double borders, so I removed the left border of the tabs. However, for the first tab in the TabContainer, I need to keep the left border.
To achieve this, I attempted to assign a custom CSS class to the first ContentPane, but have been unsuccessful so far.
Despite my efforts, I have not found a successful method yet.
I tried using data-dojo-props like this:
<div data-dojo-type="dijit/layout/ContentPane" title="FunnyTitle" data-dojo-props="class:'firstTab'">
However, this approach did not work as expected. I also tried adding the class like I would in a simple HTML element with class="firstTab".
<div data-dojo-type="dijit/layout/ContentPane" title="FunnyTitle" class="firstTab">
Unfortunately, neither of these methods successfully added my custom class to the ContentPane.
So, I am still seeking guidance on how to accomplish this task effectively.