WPDK  1.5.0
WordPress Development Kit
 All Data Structures Files Functions Variables Pages
WPDKUIComponents Class Reference

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'
 

Detailed Description

Manage the Javascript/css components under the WPDK assets folder

Author
=undo= info@.nosp@m.wpxt.nosp@m.re.me
Date
2014-02-23
Version
1.0.1

Definition at line 13 of file wpdk-ui-components.php.

Constructor & Destructor Documentation

__construct ( )

Construct.

Create an instance of WPDKUIComponents class

Returns
WPDKUIComponents

Definition at line 38 of file wpdk-ui-components.php.

Member Function Documentation

static enqueue (   $component_handles)
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 );
Since
1.5.0
Parameters
string | array$component_handlesOne or more Component handle

Definition at line 135 of file wpdk-ui-components.php.

static init ( )
static

Singleton.

Return a singleton instance of WPDKUIComponents class

Returns
WPDKUIComponents

Definition at line 177 of file wpdk-ui-components.php.

Field Documentation

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.


The documentation for this class was generated from the following file: