ListBox - Forum

Forum Navigation
You need to log in to create posts and topics.

ListBox

ListBox object change it's view when we used on mobile platform. look at this picture:

https://tinyurl.com/yy8md2ap

How can we solve this problem?

That's the way the operating system shows normal ListBox html objects.
You can try using BootStrap List Groups.
Just add this HTML code to a Container object:

<div class="list-group">
  <a href="#" onclick="$App.myvar='one'" class="list-group-item">First item</a>
  <a href="#" onclick="$App.myvar='two'" class="list-group-item">Second item</a>
  <a href="#" onclick="$App.myvar='three'" class="list-group-item">Third item</a>
</div>

Change 'myvar' and 'one', 'two', three', for your var name and the values you want to assign.

asmat has reacted to this post.
asmat

thank you so much. it's absolutely nice..

here i have one more question:

How can we add or remove  items?

Use setObjectHTML command to change the Container's content.
You can create your own subroutines for adding or deleting items quite easily or even your own plugin :)

Please, if you have time, make a sample for me about this topic.

 

asmat has reacted to this post.
asmat

@asmat, plase take a look here:
http://rickardn.github.io/listgroup.js/

I'm really busy these days, sorry.

Here is a sample app.

Uploaded files:
  • You need to login to have access to uploads.