show

Description
GET - Route that display row information of an entity

Methods


start( data )

Description
Called at route start
Parameters
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
enum_radio object Entity enum fields translations
renderFile string Dust file to render
idEntity number Id of entity to show
hideButton boolean Wether to hide buttons or not

beforeEntityQuery( data )

Description
Called before querying data of entity to show
Parameters
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
enum_radio object Entity enum fields translations
renderFile string Dust file to render
idEntity number Id of entity to show
hideButton boolean Wether to hide buttons or not

afterEntityQuery( data )

Description
Called after querying data of entity to show
Parameters
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
enum_radio object Entity enum fields translations
renderFile string Dust file to render
idEntity number Id of entity to show
hideButton boolean Wether to hide buttons or not
"e_entity" object Entity row to show

beforeRender( data )

Description
Called before show file rendering
Parameters
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
enum_radio object Entity enum fields translations
renderFile string Dust file to render
idEntity number Id of entity to show
hideButton boolean Wether to hide buttons or not
"e_entity" object Entity row to show
entityData object ajax request only - Equals to data."e_entity" whitout sequelize wrapping
subentity string <optional>
ajax request only - entity name without prefix
e_subentity string <optional>
ajax request only - entity name with prefix