This is a draft cheat sheet. It is a work in progress and is not finished yet.
Javascript Functions
$.loadScript |
function( string url, bool cache, callback = null ) |
$.loadStyle |
function( string url, bool cache, callback = null ) |
create_toast |
function(string toast_template_name) |
toggle_body_class |
function( string target_class ) |
Javascript Variables
default_animation |
500 |
fast_animation |
250 |
Spinner HTML
<div class="text-center mt-5">
<span class="spinner-border orange" role="status" aria-hidden="true"></span>
</div>
|
|
|
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 = '<?=DEFAULT_LANG?>') |
__() |
function( string string, string locale = '<?=DEFAULT_LANG?>') |
toast_model() |
function( string toast_name, string locale = '<?=DEFAULT_LANG?>') |
Javascript Language Variables
Strings |
window.lang['es_ES']['strings'][string_name] |
Toasts |
window.lang['es_ES']['toasts'][toast_name] |
|