Editing boot template, changing jarvisWidget header text

Does anyone have experience using jarvisWidgets in a bootstrap template. I use the theme from https://wrapbootstrap.com/ and the widgets are pretty simple, however I cannot change the headers, and if I use them on different pages, they change depending on what was already in the template - some rewriting of css should go on, but I don’t know where to look.

This is strange and seems so simple - I cannot change the title (title) of the chart widget.

view file / smartAdmin / DEVELOPER / AJAX _version / # ajax / morris.html

line 60

<header> <span class="widget-icon"> <i class="fa fa-bar-chart-o"></i> </span> <h2>Sales Graph</h2> </header> 

you might think that I can change the text “Sales Schedule” to “Everything I Like” - and it will be so. However, it is not!!!!

I can DELETE H2 tags and the text will not be displayed. (as expected) I can REMOVE the "SPAN" icon widget and the icon will not display (as expected)

BUT

if I change <h2> Sales Schedule to <h2> My Schedule - the text remains "Sales Schedule" on the displayed page

if I implement this graph widget on the dashboard.html page, the text is displayed as "Live Feeds" (!) regardless of what I'm typing.

+6
source share
3 answers

JarvisWidgets uses HTML5 LocalStorage . Each time you reload your page, it receives settings from LocalStorage for each widget indicated by their unique id attribute. So make sure you do this for each widget. i.e.

<div class="jarviswidget" id="wid-id-0">

Alternatively, you can call the localStorage.clear(); method localStorage.clear(); to clear the repository and reload your HTML changes.

For more information, you should check their documentation. :)

Hope this helps.

+9
source

UGH is all a new client thing ....

It uses local storage - and the cache needs to be cleared to see the changes ....

Hope this helps someone else.

+3
source

Go to js folder. Go to app.config.js and change localStorageJarvisWidgets to false. It will disable local storage.

+1
source

Source: https://habr.com/ru/post/969675/


All Articles