drab v0.5.6 API Reference
Modules
Drab allows to query and manipulate the User Interface directly from the Phoenix server backend
Browser related functions
Enable Drab on the browser side. Must be included in HTML template, for example
in web/templates/layout/app.html.eex
Drab Commander is a module to keep event handlers
Drab configuration related functions
Turns on the Drab Commander on the pages generated by this controller
Drab Module with the basic communication from Server to the Browser. Does not require any libraries like jQuery, works on pure Phoenix
HTML element query and manipulation library
Drab Module to provide a live access and update of assigns of the template, which is currently rendered and displayed in the browser
This is the Drab.Live internal cache module. It doesn’t expose any API
This is an implementation of EEx.Engine that injects Drab.Live
behaviour
Drab Template Engine, uses Drab.Live.EExEngine
to compile templates
Drab Module which contains function to launch Bootstrap Modals in the browser
Drab operates on websockets. To enable it, you should inject the Drab.Channel into your Socket module
(by default it is UserSocket
in web/channels/user_socket.ex
)
Enables Drab Waiter functionality - synchronous wait for browser events in the Commander handler function
Module with named helpers generated from DrabTestApp.Router
Exceptions
Raised when the browser encounters a JS error or the timeout for the current operation
Mix Tasks
A task to clean up both compiled binaries and the Drab cache. Use it instead of mix clean
Generates a Drab commander