Giter Club home page Giter Club logo

Comments (2)

faaxm avatar faaxm commented on May 18, 2024

I had a quick look and I think finding the location of an item in the list is tricky, as they are generated dynamically.

I think an easier way would be to not go through mouse events, but change the currentIndex of the ComboBox directly.
In a way this is cheating, but since you probably don't want to test the functionality of the ComboBox itself, but rather that other components react to the change, this could be good enough.

The way to go would then be to add a SetProperty command to Spix, similar to the current GetProperty.
What do you think?

I might have some time next week to look into this, but of course you are also welcome to contribute ;)

from spix.

faaxm avatar faaxm commented on May 18, 2024

@qutab I played around with this a bit and after introducing the "EnterKey" command, the best option seems to be to simulate keyboard events (arrow keys) to switch between the entries in a combo box.
It first has to be opened via a mouse click though...

You could also use the new "SetProperty" command to set the currently selected item, but his won't trigger the same notifications as a selection change done via the UI...

Have a look at the extended "ReapeaterLoader" example in the branch feature/ComboBox and let me know what you think ;-)

from spix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.