Bootstrap 5 style extension for Tableau. Create rich backgrounds for Tableau objects using only class names.
Bootstrap Tableau works in a similar manner to background images. The difference is you use Tableau objects as your anchor for backgrounds.
Support for clickthrough and automatic resizing/positioning
Download the .trex file here.
Since the Extension draws the divs with the same height/width and position, adding inner padding makes things look nicer
The Extension levarages a unique idea: Create a blank html canvas, create objects with the same location and size as the Tableau Objects, style them using Bootstrap.
There is no configuration popup, no JSON configs, just pure Bootstrap CSS
Before
After
Container with rounded borders, drop shadow, and gradient background
BarChart|border rounded-10 shadow bg-light bg-gradient
Container with more rounded borders, large drop shadow, and thicker border
BarChart|border border-2 rounded-20 shadow-lg
For adding various border widths, styles, and colors
Control how rounded your containers' corners are. Specificy which corners to round
Also supports rounded-4, rounded-5, rounded-10, rounded-20, rounded-30, rounded-40, rounded-50
Add drop shadows of different sizes and directions to give your containers depth
Extended drop shadow classes
shadow-top, shadow-top-lg, shadow-bottom, shadow-bottom-lg, shadow-start, shadow-start-lg, shadow-end, shadow-end-lg
Add background colors to your containers. Works in combination with gradients
Also Support Tailwind CSS Background Classes
Add gradients with the background colors above. Control the intensity and direction
Extended gradient classes. Allow you to adjust the hue of the gradient and the direction
Directional
bg-gradient-end, bg-gradient-start, bg-gradient-top
Small
bg-gradient-sm, bg-gradient-end-sm, bg-gradient-start-sm, bg-gradient-top-sm
Very small
bg-gradient-vsm, bg-gradient-end-vsm, bg-gradient-start-vsm, bg-gradient-top-vsm
You can make any background color a gradient simply by adding bg-gradient to your container class names
Border Radius: Additional rounded border classes
rounded-4, rounded-5, rounded-10, rounded-20, rounded-30, rounded-40, rounded-50
Z Index: Control the Z order of objects
z-1, z-2, ..., z-15
Neuomorphic: Basic Neomorphic classes
bg-morph, bg-morph-inset
Built in Starschema class:
star-cntr
Tailwind Background Colors: Tailwind.css BG color classes
Margin classes:
In case you use padding in Tableau to position your elements in containers, you can use a margin class in TabCSS. This works similarly to "outer padding" in Tableau, whereby any border and background classes you define will respect this padding.
Add 20px margin all around:
margin-20
Add 10px margin vertically and 20px horizontally:
margin-10-20
Use different margins on each side (numbers go top-right-bottom-left according to CSS conventions):
margin-5-10-15-10
Bootstrap 5 Documentation Here you can find all the Bootstrap 5 Classes to style your containers
The Tableau Extension API does not expose the Outer padding of objects. For objects inside of containers you will need to create parent containers to create spacing, or add blank/text objects to seperate objects.
Tableau objects are returned in the order they are craeted, not the order they are in the hierarchy. Sometimes this causes the extension to load the backgrounds in the wrong order. To adjust for this, use the zindex classes (1-15) to ensure your containers render in the right order.