2017 © Pedro Peláez
 

mit datagridview

image

mkdesignn/datagridview

  • Thursday, November 17, 2016
  • by mkdesign82
  • Repository
  • 1 Watchers
  • 1 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

datagridview

Most of the time you face hard time to render data into datatables and much more harder thing is to use ajax. In this package I have made it so easy that with 4 arguments you can build your datagrid and use it in a very efficient way . the theme that this datagrid is build on is metronic ver.4., (*1)

Usage

Step 1: Install Through Composer

With composer :, (*2)

``` json {, (*3)

"require": {
    "mkdesignn/datagridview": "1.4"
}

}, (*4)


### Step 2: Add service provider

mkdesignn\datagridview\MkDatagridviewServiceProvider::class, (*5)


### Step 3: Add Facade

"DataGrid" => mkdesignn\datagridview\DataGrid::class, (*6)


## Example Num1

$table:: 'Table_name' $columns:: ['column_1', 'column_2']; $columns_title:: ['column_1_name', 'column_2_name']; $data_table_id:: 'table_1' echo DataGrid::build($table, $columns, $column_title, $data_table_id)->render();, (*7)


the above code will give you full dynamic datatable . ## Examples Num2 What if you wanted to retrieve only the result and you did not interest with the view of the table, the only things you should do it's to use result instead of render

$table:: 'Table_name' $columns:: ['column_1', 'column_2']; $columns_title:: ['column_1_name', 'column_2_name']; $data_table_id:: 'table_1' DataGrid::build($table, $columns, $column_title, $data_table_id)->result();, (*8)


the above code will return you result which you can access it by ajax.complete method which this result is derived of you'r data_table_id. ### access result

$.ajaxComplete(function(event, xhr, data){ console.log(data_table_id) // will show you the result }), (*9)


the result its an object which contains records, column per page, current_page, and much more ... ## One more feature - Examples Num3 what if you want to use filtering on your datatable, well its very easy in using this datagrid.

$table:: 'Table_name' $columns:: ['column_1', 'column_2']; $columns_title:: ['column_1_name', 'column_2_name']; $data_table_id:: 'table_1' $type = ['column_to_use_it_as_filter'] DataGrid::build($table, $columns, $column_title, $data_table_id, $type)->result(); ```, (*10)

and thats it , now you can use it with one filter on your datatable. which you can filter throught it and also search by choosin that one single filtering ., (*11)

more feature on the way

The Versions

17/11 2016

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

by mohammad

17/11 2016

v1.7

1.7.0.0

  Sources   Download

MIT

The Requires

 

by mohammad

17/11 2016

v1.6

1.6.0.0

  Sources   Download

MIT

The Requires

 

by mohammad

16/11 2016

v1.5

1.5.0.0

  Sources   Download

MIT

The Requires

 

by mohammad

08/08 2016

v1.4

1.4.0.0

  Sources   Download

MIT

The Requires

 

by mohammad

05/08 2016

v1.3

1.3.0.0

  Sources   Download

MIT

The Requires

 

by mohammad

05/08 2016

v1.2

1.2.0.0

  Sources   Download

MIT

The Requires

 

by mohammad

05/08 2016

dev-test

dev-test

  Sources   Download

MIT

The Requires

 

by mohammad

05/08 2016

v1.1

1.1.0.0

  Sources   Download

MIT

The Requires

 

by mohammad