Methods
-
start( data )
-
Description
Called at route startParameters
Name Type Description data
object Name Type Attributes Default Description req
object Request - See expressjs definition res
object Response - See expressjs definition transaction
object <optional> Database transaction. undefined by default, provide your own when necessary idEntity
number Id of source entity alias
string Alias of relation between source entity and tab entity isAllowed
boolean 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 data
object Name Type Attributes Default Description req
object Request - See expressjs definition res
object Response - See expressjs definition transaction
object <optional> Database transaction. undefined by default, provide your own when necessary idEntity
number Id of source entity alias
string Alias of relation between source entity and tab entity isAllowed
boolean 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 data
object Name Type Attributes Description req
object Request - See expressjs definition res
object Response - See expressjs definition transaction
object <optional> Database transaction. undefined by default, provide your own when necessary idEntity
number Id of source entity alias
string Alias of relation between source entity and tab entity isAllowed
boolean Now true because we're after validity check Details
-
beforeDataQuery( data )
-
Description
Called before querying data of tabParameters
Name Type Description data
object Name Type Attributes Description req
object Request - See expressjs definition res
object Response - See expressjs definition transaction
object <optional> Database transaction. undefined by default, provide your own when necessary idEntity
number Id of source entity alias
string Alias of relation between source entity and tab entity isAllowed
boolean Now true because we're after validity check E_entity
string Entity model name e_entity
string Prefixed entity name entity
string Entity name dustData
object <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 data
object Name Type Attributes Description req
object Request - See expressjs definition res
object Response - See expressjs definition transaction
object <optional> Database transaction. undefined by default, provide your own when necessary idEntity
number Id of source entity alias
string Alias of relation between source entity and tab entity isAllowed
boolean Now true because we're after validity check E_entity
string Entity model name e_entity
string Prefixed entity name entity
string Entity name dustData
object <optional> Data provided to rendered data.renderFile. Details