Showing popup that contains a data table that you can choose
$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];
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 |