Hi Olaf, In RoyaleStore, the IStatesImpl is declared in CSS so every MXML fite can pick it up without having to specify the bead in its bead list. Maybe we shouldn't have a special case like that.
I haven't looked, but hopefully the Express components should have a default IStatesImpl so things "just work" without so much configuring. HTH, -Alex On 12/26/17, 10:39 AM, "Olaf Krueger" <m...@olafkrueger.net> wrote: >Hi guys, >the MXML and also the fx:style way works for me. > >Before asking here I've already thought about a missing bead and so I >tried >different ways to find out the name of the bead: >IDEs CodeCompletion doesn't work cause the bead name doesn't start with >"State*". >Then I searched the asjs repo but the github search isn't very helpful >here. >Then I walked through the examples in order to find an example that makes >use of states. I found e.g. this [1], but because I didn't found a states >related bead that 'enables the states feature' I finally thought such a >bead >is maybe not needed (against PAYG). > >So a few questions are left: >1) >Maybe I am blind but could somebody point me to the piece of code in this >example [1] which 'enables the states feature'. Is it baked-in within >other >beads or components? > >2) >I don't understand Piotr's code snippet [2] >Why does it work? And what is the relation between styles and states? > >3) >Are there other ways to find such beads or is a sufficient documentation >the >one and only solution? >In case of the latter: I guess it would be not so hard to automatically >put >all relevant Royale class names with its doc comments into an e.g. >ElasticSearch index. Something like this would make it very easy to search >for beads and components by using different full-text search patters... do >you think this would be helpful? > >Thanks for help! >Olaf > > >[1] >https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.co >m%2Fapache%2Froyale-asjs%2Fblob%2Fdevelop%2Fexamples%2Froyale%2FRoyaleStor >e%2Fsrc%2Fmain%2Froyale%2FproductsView%2FProductCatalogPanel.mxml%23L540&d >ata=02%7C01%7Caharui%40adobe.com%7C259a7bd7cbd54734bf0b08d54c8ff671%7Cfa7b >1b5a7b34438794aed2c178decee1%7C0%7C0%7C636499103560379160&sdata=UgE%2FG%2F >mraBJ8Ny5yJAr3pWibAggU62zCzj7WEd%2Fg7nk%3D&reserved=0 > >[2] >https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apa >che.org%2FC6GW&data=02%7C01%7Caharui%40adobe.com%7C259a7bd7cbd54734bf0b08d >54c8ff671%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636499103560379160& >sdata=1tHJy3cihhJQvJKsZDXSFqrnHkmoC5yGx3zFcbXascU%3D&reserved=0 > > > > > > >-- >Sent from: >https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-roy >ale-users.20374.n8.nabble.com%2F&data=02%7C01%7Caharui%40adobe.com%7C259a7 >bd7cbd54734bf0b08d54c8ff671%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6 >36499103560379160&sdata=wLDNSxVb8P3arAwS7U8YuVjv71DOdYzgbZSrvkLFF%2FA%3D&r >eserved=0