PHP 클래스 WPDKDynamicTableView

In addition you can drag & drop a single row to sort.
부터: 1.4.10
저자: =undo= ([email protected])
상속: extends WPDKView
파일 보기 프로젝트 열기: wpxtreme/wpdk

공개 프로퍼티들

프로퍼티 타입 설명
$sortable boolean Set TRUE for sortable rows

공개 메소드들

메소드 설명
__construct ( string $id ) : WPDKDynamicTableView Create an instance of WPDKDynamicTableView class
columns ( ) Return a key value pairs array with the column list
draw ( ) : string Return the HTML markup for dynamic table
items ( ) : array Retrun the items data to display

비공개 메소드들

메소드 설명
_columns ( ) Return the columns list with internal column to add/remove a row tool
buttonAdd ( ) : string Return the HTML markup to display the add row button.
buttonDelete ( ) : string Return the HTML markup to display the delete row button.

메소드 상세

__construct() 공개 메소드

Create an instance of WPDKDynamicTableView class
public __construct ( string $id ) : WPDKDynamicTableView
$id string ID for this dynamic table
리턴 WPDKDynamicTableView

columns() 공개 메소드

$columns = array( 'type' => array( '_label' => __( 'Type', WPXUSERSMANAGER_TEXTDOMAIN ), // Head label 'label' => __( 'Type', WPXUSERSMANAGER_TEXTDOMAIN ), 'type' => WPDKUIControlType::SELECT, 'name' => 'type[]', 'class' => 'wpxm_users_extra_field_type', 'title' => __( 'Select a field type', WPXUSERSMANAGER_TEXTDOMAIN ), 'data' => array( 'placement' => 'left' ), 'options' => $fields_type, 'value' => '', ), ... );
public columns ( )

draw() 공개 메소드

Return the HTML markup for dynamic table
public draw ( ) : string
리턴 string

items() 공개 메소드

Retrun the items data to display
public items ( ) : array
리턴 array

프로퍼티 상세

$sortable 공개적으로 프로퍼티

Set TRUE for sortable rows
public bool $sortable
리턴 boolean