API and Functions list
|The fields that will be visible to the end user for add/insert form.
|The fields that will be visible to the end user for clone form.
|Specifying the fields that the end user will see as the datagrid columns.
|Displaying the field name with a more readable label to the end-user.
|The fields that will be visible to the end user for edit/update form.
|Changing the default field type from the database to fit to our needs.
|This function is really just a facade function to call all the 4 functions at once: addFields, editFields, readFields and cloneFields.
|Simply get the current state name as a string.
|Get all the information about the current state.
|The fields that will be visible when the end-user navigates to the view form.
|This is the most basic function. In other words this means “make it work”.
|The most common validation. Checks is the field provided by the user is empty.
|Adding extra action buttons to the rows of the datagrid.
|Setting the insert functionality. This function is rare to use as the default is already enabled.
|Change the default API URL path and instead use the provided URL. Useful when we use Routes.
|Enabling the clone functionality for the datagrid. Clone is basically copying all the data to an insert form.
|Set the delete functionality. This function is rare to use as the default is already enabled.
|Set the update functionality. This function is rare to use as the default is already enabled.
|Set the export functionality. This function is rare to use as the default is already enabled.
|Change any handle of the translation.
|Set the language of the CRUD. All the languages that Grocery CRUD supports are listed at the Languages Support section.
|Changing the default model with a custom one.
|Set manually the primary key for a table.
|Setting the print functionality. This function is rare to use as the default is already enabled.
|In order to enable the “View” button at your grid you will need to use the function setRead. The view of the form (read only) is false by default.
|This is the function that is used to connect two tables with a 1 to n (1:n) relation.
|A connection for 3 tables with n-n relation (also known as n:n or m:n).
|The setRule function is used to set a validation rule at the backend. Same as Codeigniter 4 setRule
|Set a subject title for all the CRUD operations for the current CRUD.
|This is the database table that the developer will use to create the CRUD.
|Specifying the fields that will open with a texteditor (ckeditor).
|The setTheme is used in order to change the default theme (flexigrid).
|Check if the data for the specified fields are unique. This is used at the insert and the update operation.
|Removing the insert functionality at the current CRUD.
|Unset (do not display) the specified fields for the insert form.
|Unsets everything that has to do with buttons or links with go back to datagrid message. Currently only available for community version.
|Do not load Bootstrap CSS. This is used when the Bootstrap CSS is already loaded at the template.
|The method unsetClone is removing completely the Clone operation for the end-user.
|Unset (do not display) the specified fields from the clone form.
|Unset (do not display) the specified columns.
|Unset and do not display the delete functionality Also unsetting the delete multiple functionality.
|Removing the edit operation for the end-user (from the frontend and the backend)
|Unset (do not display) the specified fields for the update form.
|Removing the export functionality for the current CRUD.
|Unset (do not display) the specified fields for insert, update, clone and view form. This method is simply combining the methods: unsetAddFields, unsetEditFields, unsetCloneFields, unsetReadFields.
|Do not load jQuery. This is used when jQuery is already loaded at the template.
|Do not load jQuery UI. This is used when the jQuery UI (CSS and JS) is already loaded at the template.
|Removing all the permissions for any operation (expect print and export) for the end-user.
|The method unsetPrint is removing completely the Print operation for the end-user.
|The method unsetRead is removing completely the Read operation for the end-user.
|Unset (do not display) the specified fields for the view (read only) form.
|Unsets the texteditor for the selected fields. This function is really rare to use as by default there is not any load of the texteditor for optimising purposes.
|Filter the queries with an extra where statement.
|A callback that is used in case you need to create a custom field for the add form.
|The callback that will be used right after the delete.
|The callback that will be used right after the insert of the data.
|The callback that will be used right after the update of the data.
|The callback will be triggered before the delete functionality.
|The callback is used in cases we need to add or change data before the insert functionality.
|The callback is used in cases we need to add or change data before the update functionality.
|A callback that is used in case you need to create a custom field for the clone form.
|The method callbackColumn is the transformation of the data for a column at the datagrid.
|The basic usage of callbackDelete is when we want to replace the default delete functionality.
|A callback that is used in case you need to create a custom field for the edit/update form.
|The callback is used when we need to replace the default functionality of the insert.
|This is a callback in order to create a custom field at the read/view form.
|The callback is used when we need to replace the default update functionality.
|The default ordering that the datagrid will have before the user will press any button to order by column.
|setRules method combines multiple setRule methods into one.
|Action button for multiple selections with checkboxes.
|Choose between two skins: Bootstrap v3 and Bootstrap V4.
|Removing the "Filters" button from the datagrid.
|Unset the search on the datagrid from quick column search and from filtering.
|Removing the "Settings" button from the datagrid.
|The callback that will be used right after the multiple delete functionality.
|Similar functionality with callbackBeforeDelete it is just that this callback will be used for the delete multiple functionality.
|Replaces the default multiple delete functionality with the callback specified.
|A callback to change the read data that will display at the read/view modal.
|This callback is used in case we need to append, filter or change the data that are going to appear on the edit form.
|The setDeleteMultiple method is rarely used as the multiple delete functionality is enabled by default.
|This function is used when you don't want the user to have the ability to batch remove too many records at once. Have in mind that the user can remove rows one by one.
|There are cases, that we need some fields to be read only but only to the add form modal.
|There are cases, that we need some fields to be read only but only to the clone form modal.
|There are cases, that we need some fields to be read only but only to the edit form modal.
|Specifying the fields that can't be edited and will only be viewed.
|The callback that will be triggered right after the upload.
|The callback that will be triggered right after the upload.
|The callback is used in cases we need to filter the uploaded data before the upload functionality.
|The callbackUpload is used when we need to replace the default upload functionality of Grocery CRUD Enterprise.
|There is a special type of field for uploading data or images and in order to trigger this type, you will need to use the setFieldUpload method.
|Multiple Uploads functionality in one field with comma separated values.
|Specify the token name for CSRF protection.
|Specify the token value for CSRF protection.
|Set the database schema (currently only tested on PostgresSQL databases).
|There are cases that dropdown list that was built from setRelation has dependencies between them.
|Postgres database is recognising the insert id with a sequence key.
|This function is used for cases that you need to change the field type but only for the add/insert form.
|This function is used for cases that you need to change the field type but only for the Clone form.
|This function is used for cases that you need to change the field type but only for the datagrid column.
|This function is used for cases that you need to change the field type but only for the edit/update form.
|This function is really just a facade function to call all the functions of field-types for the form data.
|This function is used when you need to change the field type but only for the read/view form.
|Enable the upload functionality for Blob field type.
|Quickly set a configuration name that will be specific for your CRUD.
|setLanguagePath is used in order to change the default path of the language folder.
|The method setThemePath is used when we want to change the folder of the theme.