Alkemist v1.0.1-rc Alkemist.ViewHelpers
Provides helpers for the CRUD views and templates
Link to this section Summary
Functions
Create an action link Params:
- label - Plain text or html label to name the link
- conn - the connection
- action - atom, action to be called (controller method)
- resource - Can be either a Module or a struct (Db.User or %Db.User{})
- opts - options for the link (class, title, data-methods)
Returns if a list has any entries
Returns the view module and template for the aside menu. See Alkemist.Config
Returns the current user if it is provided in the authorization provider
Returns the current user’s name if it is provided in the authorization provider
Returns the view module and template for the left header (brand) if it is set in the configuration
Returns the registered menu items for the sidebar
Returns the view module and template for the right header menu if it is set in the configuration
Returns the scripts view
Returns the view module and template for the sidebar see Alkemist.Config
Returns the site logo or title to display in the header
Returns the site title to display in the title
Returns the styles view
Link to this section Functions
Create an action link Params:
- label - Plain text or html label to name the link
- conn - the connection
- action - atom, action to be called (controller method)
- resource - Can be either a Module or a struct (Db.User or %Db.User{})
- opts - options for the link (class, title, data-methods)
Returns if a list has any entries
Returns the view module and template for the aside menu. See Alkemist.Config
Returns the current user if it is provided in the authorization provider
Returns the current user’s name if it is provided in the authorization provider
Returns the view module and template for the left header (brand) if it is set in the configuration
Returns the view module and template for the right header menu if it is set in the configuration
Returns the scripts view
Returns the view module and template for the sidebar see Alkemist.Config
Returns the site logo or title to display in the header
Returns the site title to display in the title
Returns the styles view