Configure your own theme to style the checkboxes. The plugin includes an additional theme krajee-flatblue in addition to the default theme. To set the theme krajee-flatblue, you must load the theme-krajee-flatblue.css
file after the checkbox-x.css
file. Then set the theme property to krajee-flatblue
.
Not seeing the updated content on this page! Hard refresh your browser to clean cache for this page (e.g. SHIFT-F5 on Windows Chrome)
theme-krajee-flatblue.css
) after checkbox-x.css
on your page. Then you must set the theme
property of the plugin to your theme name (in this case krajee-flatblue
). The CSS classes for your theme should be built upon cbx-(THEMENAME)
, which in this case is cbx-krajee-flatblue
. <legend>Sizes</legend> <hr> <div class="mb-3"> <div class="cbx-krajee"> <label class="cbx-label" for="check-theme-1a">xs1</label> <input id="check-theme-1a" value="1" type="text" data-toggle="checkbox-x" data-theme="krajee-flatblue" data-size="xs"> </div> <div class="cbx-krajee"> <label class="cbx-label" for="check-theme-2a">xs2</label> <input id="check-theme-2a" value="0" data-toggle="checkbox-x" data-theme="krajee-flatblue" data-size="xs"> </div> <div class="cbx-krajee"> <label class="cbx-label" for="check-theme-3a">xs3</label> <input id="check-theme-3a" value="" data-toggle="checkbox-x" data-theme="krajee-flatblue" data-size="xs"> </div> </div> <div class="mb-3"> <div class="cbx-krajee"> <label class="cbx-label" for="check-theme-1b">sm1</label> <input id="check-theme-1b" value="1" data-toggle="checkbox-x" data-theme="krajee-flatblue" data-size="sm"> </div> <div class="cbx-krajee"> <label class="cbx-label" for="check-theme-2b">sm2</label> <input id="check-theme-2b" value="0" data-toggle="checkbox-x" data-theme="krajee-flatblue" data-size="sm"> </div> <div class="cbx-krajee"> <label class="cbx-label" for="check-theme-3b">sm3</label> <input id="check-theme-3b" value="" data-toggle="checkbox-x" data-theme="krajee-flatblue" data-size="sm"> </div> </div> <div class="mb-3"> <div class="cbx-krajee"> <label class="cbx-label" for="check-theme-1c">md1</label> <input id="check-theme-1c" value="1" data-toggle="checkbox-x" data-theme="krajee-flatblue" data-size="md"> </div> <div class="cbx-krajee"> <label class="cbx-label" for="check-theme-2c">md2</label> <input id="check-theme-2c" value="0" data-toggle="checkbox-x" data-theme="krajee-flatblue" data-size="md"> </div> <div class="cbx-krajee"> <label class="cbx-label" for="check-theme-3c">md3</label> <input id="check-theme-3c" value="" data-toggle="checkbox-x" data-theme="krajee-flatblue" data-size="md"> </div> </div> <div class="mb-3"> <div class="cbx-krajee"> <label class="cbx-label" for="check-theme-1d">lg1</label> <input id="check-theme-1d" value="1" data-toggle="checkbox-x" data-theme="krajee-flatblue" data-size="lg"> </div> <div class="cbx-krajee"> <label class="cbx-label" for="check-theme-2d">lg2</label> <input id="check-theme-2d" value="0" data-toggle="checkbox-x" data-theme="krajee-flatblue" data-size="lg"> </div> <div class="cbx-krajee"> <label class="cbx-label" for="check-theme-3d">lg3</label> <input id="check-theme-3d" value="" data-toggle="checkbox-x" data-theme="krajee-flatblue" data-size="lg"> </div> </div> <div class="mb-3"> <div class="cbx-krajee"> <label class="cbx-label" for="check-theme-1e">xl1</label> <input id="check-theme-1e" value="1" data-toggle="checkbox-x" data-theme="krajee-flatblue" data-size="xl"> </div> <div class="cbx-krajee"> <label class="cbx-label" for="check-theme-2e">xl2</label> <input id="check-theme-2e" value="0" data-toggle="checkbox-x" data-theme="krajee-flatblue" data-size="xl"> </div> <div class="cbx-krajee"> <label class="cbx-label" for="check-theme-3e">xl3</label> <input id="check-theme-3e" value="" data-toggle="checkbox-x" data-theme="krajee-flatblue" data-size="xl"> </div> </div> <div class="mb-3"> <div class="cbx-krajee"> <label class="cbx-label" for="check-theme-1f">xl(d)1</label> <input id="check-theme-1f" value="1" disabled data-toggle="checkbox-x" data-theme="krajee-flatblue" data-size="xl"> </div> <div class="cbx-krajee"> <label class="cbx-label" for="check-theme-2f">xl(d)2</label> <input id="check-theme-2f" value="0" disabled data-toggle="checkbox-x" data-theme="krajee-flatblue" data-size="xl"> </div> <div class="cbx-krajee"> <label class="cbx-label" for="check-theme-3f">xl(d)3</label> <input id="check-theme-3f" value="" disabled data-toggle="checkbox-x" data-theme="krajee-flatblue" data-size="xl"> </div> </div> <legend>Contextual Colors</legend> <hr> <div class="mb-3 has-success"> <div class="cbx-krajee"> <label class="cbx-label" for="check-theme-1h">Success</label> <input id="check-theme-1h" type="checkbox" value="1" data-toggle="checkbox-x" data-theme="krajee-flatblue" data-size="xl"> </div> </div> <div class="mb-3 has-warning"> <div class="cbx-krajee"> <label class="cbx-label" for="check-theme-2h">Warning</label> <input id="check-theme-2h" value="1" data-toggle="checkbox-x" data-theme="krajee-flatblue" data-size="xl"> </div> </div> <div class="mb-3 has-error"> <div class="cbx-krajee"> <label class="cbx-label" for="check-theme-3h">Danger</label> <input id="check-theme-3h" value="1" data-toggle="checkbox-x" data-theme="krajee-flatblue" data-size="xl"> </div> </div>
<legend>Sizes</legend> <hr> <div class="mb-3"> <div class="cbx-krajee"> <label class="cbx-label" for="check-1a">xs1</label> <input id="check-1a" value="1" type="text" data-toggle="checkbox-x" data-size="xs"> </div> <div class="cbx-krajee"> <label class="cbx-label" for="check-2a">xs2</label> <input id="check-2a" value="0" data-toggle="checkbox-x" data-size="xs"> </div> <div class="cbx-krajee"> <label class="cbx-label" for="check-3a">xs3</label> <input id="check-3a" value="" data-toggle="checkbox-x" data-size="xs"> </div> </div> <div class="mb-3"> <div class="cbx-krajee"> <label class="cbx-label" for="check-1b">sm1</label> <input id="check-1b" value="1" data-toggle="checkbox-x" data-size="sm"> </div> <div class="cbx-krajee"> <label class="cbx-label" for="check-2b">sm2</label> <input id="check-2b" value="0" data-toggle="checkbox-x" data-size="sm"> </div> <div class="cbx-krajee"> <label class="cbx-label" for="check-3b">sm3</label> <input id="check-3b" value="" data-toggle="checkbox-x" data-size="sm"> </div> </div> <div class="mb-3"> <div class="cbx-krajee"> <label class="cbx-label" for="check-1c">md1</label> <input id="check-1c" value="1" data-toggle="checkbox-x" data-size="md"> </div> <div class="cbx-krajee"> <label class="cbx-label" for="check-2c">md2</label> <input id="check-2c" value="0" data-toggle="checkbox-x" data-size="md"> </div> <div class="cbx-krajee"> <label class="cbx-label" for="check-3c">md3</label> <input id="check-3c" value="" data-toggle="checkbox-x" data-size="md"> </div> </div> <div class="mb-3"> <div class="cbx-krajee"> <label class="cbx-label" for="check-1d">lg1</label> <input id="check-1d" value="1" data-toggle="checkbox-x" data-size="lg"> </div> <div class="cbx-krajee"> <label class="cbx-label" for="check-2d">lg2</label> <input id="check-2d" value="0" data-toggle="checkbox-x" data-size="lg"> </div> <div class="cbx-krajee"> <label class="cbx-label" for="check-3d">lg3</label> <input id="check-3d" value="" data-toggle="checkbox-x" data-size="lg"> </div> </div> <div class="mb-3"> <div class="cbx-krajee"> <label class="cbx-label" for="check-1e">xl1</label> <input id="check-1e" value="1" data-toggle="checkbox-x" data-size="xl"> </div> <div class="cbx-krajee"> <label class="cbx-label" for="check-2e">xl2</label> <input id="check-2e" value="0" data-toggle="checkbox-x" data-size="xl"> </div> <div class="cbx-krajee"> <label class="cbx-label" for="check-3e">xl3</label> <input id="check-3e" value="" data-toggle="checkbox-x" data-size="xl"> </div> </div> <div class="mb-3"> <div class="cbx-krajee"> <label class="cbx-label" for="check-1f">xl(d)1</label> <input id="check-1f" value="1" disabled data-toggle="checkbox-x" data-size="xl"> </div> <div class="cbx-krajee"> <label class="cbx-label" for="check-2f">xl(d)2</label> <input id="check-2f" value="0" disabled data-toggle="checkbox-x" data-size="xl"> </div> <div class="cbx-krajee"> <label class="cbx-label" for="check-3f">xl(d)3</label> <input id="check-3f" value="" disabled data-toggle="checkbox-x" data-size="xl"> </div> </div> <legend>Contextual Colors</legend> <hr> <div class="mb-3 has-success"> <div class="cbx-krajee"> <label class="cbx-label" for="check-1h">Success</label> <input id="check-1h" type="checkbox" value="1" data-toggle="checkbox-x" data-size="xl"> </div> </div> <div class="mb-3 has-warning"> <div class="cbx-krajee"> <label class="cbx-label" for="check-2h">Warning</label> <input id="check-2h" value="1" data-toggle="checkbox-x" data-size="xl"> </div> </div> <div class="mb-3 has-error"> <div class="cbx-krajee"> <label class="cbx-label" for="check-3h">Danger</label> <input id="check-3h" value="1" data-toggle="checkbox-x" data-size="xl"> </div> </div> <div class="mb-3"> <div class="cbx-krajee"> <label class="cbx-label" for="check-4h">Default</label> <input id="check-4h" value="1" data-toggle="checkbox-x" data-size="xl"> </div> </div>
Comments & Discussion
Note
You can now visit the Krajee Webtips Q & A forum for searching OR asking questions OR helping programmers with answers on these extensions and plugins. For asking a question click here. Select the appropriate question category (i.e. Krajee Plugins) and choose this current page plugin in the question related to field.
The comments and discussion section below are intended for generic discussions or feedback for this plugin. Developers may not be able to search or lookup here specific questions or tips on usage for this plugin.