![]() |
WPDK
1.5.0
WordPress Development Kit
|
Public Member Functions | |
| __construct () | |
| Construct. More... | |
Static Public Member Functions | |
| static | enqueue ($component_handles) |
| Enqueue component. More... | |
| static | init () |
| Singleton. More... | |
Data Fields | |
| const | ALERT = 'wpdk-alert' |
| const | BUTTON = 'wpdk-button' |
| const | CONTROLS = 'wpdk-controls' |
| const | DYNAMIC_TABLE = 'wpdk-dynamic-table' |
| const | MODAL = 'wpdk-modal' |
| const | POPOVER = 'wpdk-popover' |
| const | PREFERENCES = 'wpdk-preferences' |
| const | PROGRESS = 'wpdk-progress' |
| const | RIBBONIZE = 'wpdk-ribbonize' |
| const | TOOLTIP = 'wpdk-tooltip' |
| const | TRANSITION = 'wpdk-transition' |
Manage the Javascript/css components under the WPDK assets folder
Definition at line 13 of file wpdk-ui-components.php.
| __construct | ( | ) |
Construct.
Create an instance of WPDKUIComponents class
Definition at line 38 of file wpdk-ui-components.php.
|
static |
Enqueue component.
Perform an enqueue of scripts and styles of a one or more components
// Load a single components WPDKUIComponents::enqueue( WPDKUIComponents::TOOLTIP ); // Load one or more components WPDKUIComponents::enqueue( array( WPDKUIComponents::MODAL, WPDKUIComponents::TOOLTIP ) ); // Or... like kind of magic WPDKUIComponents::enqueue( WPDKUIComponents::MODAL, WPDKUIComponents::TOOLTIP );
| string | array | $component_handles | One or more Component handle |
Definition at line 135 of file wpdk-ui-components.php.
|
static |
Singleton.
Return a singleton instance of WPDKUIComponents class
Definition at line 177 of file wpdk-ui-components.php.
| const ALERT = 'wpdk-alert' |
Definition at line 19 of file wpdk-ui-components.php.
| const BUTTON = 'wpdk-button' |
Definition at line 20 of file wpdk-ui-components.php.
| const CONTROLS = 'wpdk-controls' |
Definition at line 21 of file wpdk-ui-components.php.
| const DYNAMIC_TABLE = 'wpdk-dynamic-table' |
Definition at line 22 of file wpdk-ui-components.php.
| const MODAL = 'wpdk-modal' |
Definition at line 23 of file wpdk-ui-components.php.
| const POPOVER = 'wpdk-popover' |
Definition at line 24 of file wpdk-ui-components.php.
| const PREFERENCES = 'wpdk-preferences' |
Definition at line 25 of file wpdk-ui-components.php.
| const PROGRESS = 'wpdk-progress' |
Definition at line 26 of file wpdk-ui-components.php.
| const RIBBONIZE = 'wpdk-ribbonize' |
Definition at line 27 of file wpdk-ui-components.php.
| const TOOLTIP = 'wpdk-tooltip' |
Definition at line 28 of file wpdk-ui-components.php.
| const TRANSITION = 'wpdk-transition' |
Definition at line 29 of file wpdk-ui-components.php.