Can I Use ListView with Plain JavaScript?
See original GitHub issueProblem description
I want to know if I can use ListView https://docs.tabris.com/3.3/api/ListView.html with plain JavaScript
Expected behavior
Be able to use ListView with plain JS.
Environment
- Tabris.js version: 3.5
- Device: Android emulator, iOS simulator
- OS: iOS 13.4, Android 5
Code snippet
new ListView({items:[]});
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
pandeysambhi/Vanilla-JS-List-View-hackerrank - GitHub
This Project renders the List View in plain JavaScript. It is a solution to one of the questions asked on hackerrank.
Read more >Javascript Listview Examples - Mobiscroll
Advanced list view component with gesture, swipe and drag & drop support. Use it along Mobiscroll forms, pages or in any web or...
Read more >Getting started in JavaScript ListView control - Syncfusion
To get started with the ListView control, you can clone the Essential JS 2 quickstart project, and install the packages by using the...
Read more >Single-selectable listview in pure HTML/CSS? - Stack Overflow
This starts with a simple structure, just enough that the form is enclosed in something so you can see the relative layout.
Read more >How to Create and Update Lists in Vanilla JS
Working with the DOM in Vanilla JS apps (part 2): Creating and updating ... I can use paging for longer lists to reuse...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
There are examples with updating arrays, but they are all using data binding and won’t work in plain JS.
Here is an example that adds items to a plain array on items selection that should work in plain JS:
And the same example using
List
instead of array, because that’s actually more convinient.I’ll add these to the official examples eventually.
Yes, but note that you’ll need to set
items
to a new array in order to see any changes