Hi Piotr, El lun., 21 ene. 2019 a las 13:30, Piotr Zarzycki (< [email protected]>) escribió:
> Carlos, > > I think solution with bead which checking whether some event is available > or not cause you may bump into situation where that event is not there and > you would like to still have that cursor there. > > ok, is just an idea I had...but as you said maybe is complicated to deal with listeners. Could be complicated to manage. > By adding cursor inside created bead - you mean how to do that ? Using > className="cursor-pointer" or are you saying in that way ? > > element.style["cursor"] = "pointer"; > I prefer to do things like this adding and removing a css class selector instead of using style object. depending on the scope of the bead you can use "addClass" in StyledUIBase or go directly to the JS element in UIBase > > I'm ok with current solution, so not sure if I would like to spend time on > so it's ok for me too... > that. > > Thanks, > Piotr > > pon., 21 sty 2019 o 13:09 Carlos Rovira <[email protected]> > napisał(a): > > > Hi Piotr, > > > > just commited a fix for this. > > > > I must say that I never liked this solution (to add className for this) > > Maybe we could add a Bead ("CursorPointer") that adds this css class > > selector to the strand. What do you think? > > > > Even something better could be that bead could check listeners and change > > the cursor to pointer if the strand has a MouseEvent.XXX listeners added > > automatically, (although this solution needs more process) > > > > > > > > El lun., 21 ene. 2019 a las 12:44, Piotr Zarzycki (< > > [email protected]>) escribió: > > > > > Hi Carlos, > > > > > > In LabelPlayground example we have label which should display hand > cursor > > > when we roll over on it. It's being used there > className="cursor-pointer" > > > [1] - I see in the browser that this class is being applied, but I > cannot > > > find where it is declared ? > > > In my application I did use that class and it's also appear in the > > > browser, but from where it comes from actually ? > > > > > > This example doesn't work properly so I wanted to fix it. I know that > > > solution for that would be probably: > > > > > > .jewel.label.cursor-pointer { > > > cursor: pointer; > > > } > > > > > > [image: image.png] > > > > > > [1] > > > > > > https://github.com/apache/royale-asjs/blob/007eab65fd576598f7cef1d8e62ae160e16474a9/examples/royale/TourDeJewel/src/main/royale/LabelPlayGround.mxml#L47 > > > > > > Thanks, > > > -- > > > > > > Piotr Zarzycki > > > > > > Patreon: *https://www.patreon.com/piotrzarzycki > > > <https://www.patreon.com/piotrzarzycki>* > > > > > > > > > -- > > Carlos Rovira > > http://about.me/carlosrovira > > > > > -- > > Piotr Zarzycki > > Patreon: *https://www.patreon.com/piotrzarzycki > <https://www.patreon.com/piotrzarzycki>* > -- Carlos Rovira http://about.me/carlosrovira
