ruby - Example of an update-able image in dashing dashboard -


i have taken dashing sample dashboard , added widgets - 2 image , 1 bigimage widgets:

    <li data-row="1" data-col="1" data-sizex="2" data-sizey="1">       <div data-id="image2" data-view="image" data-image="images/image2.jpg" title="image2" data-link='abc' style="background-color:#ff9618"></div>     </li>     <li data-row="1" data-col="1" data-sizex="3" data-sizey="2">   <!-- <div data-id="picture" data-view="bigimage" data-image="file:///shared/images/aura0.jpg" -->   <div data-id="picture" data-view="bigimage" data-image="https://www.google.com/images/nav_logo195_hr.png"     style="background-color:transparent;"     data-max="true"   ></div> </li> 

the placeholder widgets show images not:

enter image description here

when click following occurs:

enter image description here

clearly missing plumbing - , basic concepts here. pointer gist or similar appreciated.

you have use images served somewhere browser can load them. easiest way put images assets/images , link them @ assets/my-image.jpg this:

<li data-row="1" data-col="1" data-sizex="2" data-sizey="1">   <div data-id="logo" data-view="image" data-image="assets/my-image.jpg"></div> </li> 

also, reason why error when click on 1 of them have defined data-link='abc', creating link /abc. doesn't exist , dashing giving 404.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -