Jump to content
UBot Underground

UI Panel Variable Question


Recommended Posts

I'm using the twitter bootstrap foundation to build my panel UI and it has a very nice progress bar I would like to use.

 

The code for the progress bar is

    <div class="progress">
      <div class="bar" style="width: 90%;"></div>
    </div>

Is it possible to change 90% to a variable that I can use?

Link to post
Share on other sites

Is this not possible?

 

All I would need to change is the section width: 90% and replace 90% with a variable.

 

Maybe javascript is a possibility?

Link to post
Share on other sites

Use it like this:

ui html panel("<div class=\"bar\" style=\"width: 90%; color: red\" variable=\"#var\" fillwith=\"style\">test</div>", "")
set(#var, "color: red;", "Global")

Notice that I only changed color of the div, since I don't use bootstrap.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...