This document will guide you through the use of widget styles for the Gambio GX3 shop.
The shop implements a JavaScript Module Engine for handling JavaScript operations easily and consistently. It features useful libraries, extensions and widgets which can boost up the UI development for the whole GX3 system.
Continue reading in order to learn how to use the widgets for the Gambio Admin through the provided examples and demos. Keep in mind that you will need to place the "gx-container" class only once in your page and not for every container element as shown in the examples. The "gx-compatibility" class will be automatically added into old pages that use the "header.php" file.
Widgets define JavaScript UI controls that can be easily manipulated in order to provide advanced functionality that will enhance the user experience. The engine wraps the functionality of major JavaScript projects and plugins such as the jQuery UI library, the DataTables plugin and many more.
Simply use the data-attributes, shown in the following examples, to bind the needed widget on your HTML structure. The styling will be applied by the gx-admin.css which is included by every page using the "header.php".
By applying this to your structure the normal checkboxes are replaced by specific structures in gx-admin style.
Checkbox widget for one single checkbox:
By adding data-gx-widget="checkbox" on a wrapping element which contians two radio buttons, the radio buttons will be transformed to a switcher.
To call different URLs on different states of a switcher data-checkbox-on_url and data-checkbox-off_url can be applied to the widget element.
If the switcher symbols should be replaced by custom labels following data-attributes can be used:
If additional informations should displayed in a tooltip, data-gx-widget="tooltip_icon" is used.
To apply a CKEditor on a textarea, the following widget is used.
To generate a colorpicker element the following widget can be used.
To tranform a normal table into a data table with a pagination and a possibility to search for values of the table, the following widget can be used.
Company | Contact | Country |
---|---|---|
Alfreds Futterkiste | Maria Anders | Germany |
Berglunds snabbköp | Christina Berglund | Sweden |
Centro comercial Moctezuma | Francisco Chang | Mexico |
Ernst Handel | Roland Mendel | Austria |
Island Trading | Helen Bennett | UK |
Königlich Essen | Philip Cramer | Germany |
Laughing Bacchus Winecellars | Yoshi Tannamuri | Canada |
Magazzini Alimentari Riuniti | Giovanni Rovelli | Italy |
North/South | Simon Crowther | UK |
Paris spécialités | Marie Bertrand | France |
The Big Cheese | Liz Nixon | USA |
Vaffeljernet | Palle Ibsen | Denmark |
To generate a datepicker, following structure can be applied to an input field.
To generate a datetimepicker, following structure can be applied to an input field.
To generate a progress bar following elements can be used.
To generate an animated progress bar, the second code example can be used.
To generate a slider the following widget can be used.
To generate a spinner the following widget can be used.
Following html structure will generate a tab system: