Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 947 Bytes

form-datamodal.md

File metadata and controls

21 lines (18 loc) · 947 Bytes

Datamodal Form Type

Showing popup that contains a data table that you can choose

Code Example

$this->form[] = ['label'=>'Product Name','name'=>'products_id','type'=>'datamodal','datamodal_table'=>'products','datamodal_where'=>'','datamodal_columns'=>'name,description,price','datamodal_columns_alias'=>'Name,Description,Price','required'=>true];	

Legend

Attribute Name Example Description
datamodal_table (Required) E.g : products Table name
datamodal_columns (Required) E.g : name,description,price fields name to show. sparate with comma
datamodal_columns_alias (Required) E.g : Name,Description,Price alias of fields
datamodal_where E.g : id != 1 Sql query where
datamodal_size E.g : large or default popup size

What's Next

Table Of Contents