Skip to content

Instantly share code, notes, and snippets.

@razzul
Last active March 9, 2017 09:02
Show Gist options
  • Save razzul/7231692d39e71fbc344dc7aefbb42a36 to your computer and use it in GitHub Desktop.
Save razzul/7231692d39e71fbc344dc7aefbb42a36 to your computer and use it in GitHub Desktop.

Remove col from listing

STEP 1:

public function index()
{
	$this->listing_cols = array_diff($this->listing_cols, ['description']);

STEP 2:

public function dtajax()
{
	$this->listing_cols = array_diff($this->listing_cols, ['description']);
	...
	$fields_popup = ModuleFields::getModuleFields('Books');
	$fields_popup = array_except($fields_popup, ['description']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment