Show Menu
Cheatography

Code Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Javascript Functions

$.load­Script
function( string url, bool cache, callback = null )
$.load­Style
function( string url, bool cache, callback = null )
create­_toast
functi­on(­string toast_­tem­pla­te_­name)
toggle­_bo­dy_­class
function( string target­_class )

Javascript Variables

defaul­t_a­nim­ation
500
fast_a­nim­ation
250

Spinner HTML

<div class=­"­tex­t-c­enter mt-5">
    <span class=­"­spi­nne­r-b­order orange­" role="s­tat­us" aria-h­idd­en=­"­tru­e"><­/sp­an>­
</d­iv>
 

Toast animation Speeds

$slow
8000
$normal
5000
$default
5000
$fast
1500

Toast Default

def_opts = {
    title: 'Toast',
    subtitle: '11 mins ago',
    content: 'Hello, world! This is a toast message.',
    type: 'info',
    delay: 5000 = $normal
};

Javascript Language Functions

gt()
function( string string, string locale = '<?­=DE­FAU­LT_­LAN­G?>')
__()
function( string string, string locale = '<?­=DE­FAU­LT_­LAN­G?>')
toast_­model()
function( string toast_­name, string locale = '<?­=DE­FAU­LT_­LAN­G?>')

Javascript Language Variables

Strings
window.la­ng[­'es­_ES­'][­'st­rin­gs'­][s­tri­ng_­name]
Toasts
window.la­ng[­'es­_ES­'][­'to­ast­s']­[to­ast­_name]