Skip to main content

API Reference

ModelCol

Can be defined for the fields which are part of model

ParameterTypeMandatoryDefaultDescription/Purpose
display_asstringNoFieldname in modelColumn Title
searchablebooleanNoTrueColumn is searchable or not
sortablebooleanNoTrueColumn is sortable or not
user_rolesList of stringsNo[]Column should be visible to certain user roles. Ex:, user_roles = [“PAP Executive”, “PAP Manager”]. If user_roles is not passed then by default column will be visible to all the user roles

StringCol

Custom column for the non-model fields, where you can define the column value via custom display methods

ParameterTypeMandatoryDefaultDescription/Purpose
searchablebooleanNoTrueColumn is searchable or not
sortablebooleanNoTrueColumn is sortable or not
user_rolesList of stringsNo[]Column should be visible to certain user roles.Ex: user_roles = ["PAP Executive", "PAP Manager"]. If user_roles is not passed, then by default, the column will be visible to all user roles.