Methods
-
start( data )
-
Description
Called at route startParameters
Name Type Description dataobject Name Type Attributes Default Description reqobject Request - See expressjs definition resobject Response - See expressjs definition transactionobject <optional> Database transaction. undefined by default, provide your own when necessary idEntitynumber Id of source entity aliasstring Alias of relation between source entity and tab entity isAllowedboolean false Boolean to block tab loading. Set it to true to skip default verifications Details
-
beforeValidityCheck( data )
-
Description
Called before checking access rights to this tab for logged userParameters
Name Type Description dataobject Name Type Attributes Default Description reqobject Request - See expressjs definition resobject Response - See expressjs definition transactionobject <optional> Database transaction. undefined by default, provide your own when necessary idEntitynumber Id of source entity aliasstring Alias of relation between source entity and tab entity isAllowedboolean false Boolean to block tab loading. Set it to true to skip default access rights verifications Details
-
afterValidityCheck( data )
-
Description
Called after checking access rights, if allowedParameters
Name Type Description dataobject Name Type Attributes Description reqobject Request - See expressjs definition resobject Response - See expressjs definition transactionobject <optional> Database transaction. undefined by default, provide your own when necessary idEntitynumber Id of source entity aliasstring Alias of relation between source entity and tab entity isAllowedboolean Now true because we're after validity check Details
-
beforeDataQuery( data )
-
Description
Called before querying data of tabParameters
Name Type Description dataobject Name Type Attributes Description reqobject Request - See expressjs definition resobject Response - See expressjs definition transactionobject <optional> Database transaction. undefined by default, provide your own when necessary idEntitynumber Id of source entity aliasstring Alias of relation between source entity and tab entity isAllowedboolean Now true because we're after validity check E_entitystring Entity model name e_entitystring Prefixed entity name entitystring Entity name dustDataobject <optional> Data provided to rendered data.renderFile. If data.dustData as no value, tab's default value will be loaded using `helpers.entity.getTabData()`. Set your data to avoid execution of default. Details
-
beforeRender( data )
-
Description
Called before rendering data.renderFileParameters
Name Type Description dataobject Name Type Attributes Description reqobject Request - See expressjs definition resobject Response - See expressjs definition transactionobject <optional> Database transaction. undefined by default, provide your own when necessary idEntitynumber Id of source entity aliasstring Alias of relation between source entity and tab entity isAllowedboolean Now true because we're after validity check E_entitystring Entity model name e_entitystring Prefixed entity name entitystring Entity name dustDataobject <optional> Data provided to rendered data.renderFile. Details