Hi Olaf,

Yes, I am pushing you to create ACEEditor as a fully complaint Royale
component.

You don't have to do it, but doing so would help us make sure that Royale
is capable of such things.  IMO, we want all UI widgets to be usable in
MXML and AS and appear to have a consistent lifecycle.  The MXML
requirement means that the widget cannot have constructor parameters.
Some other factors require you to implement IUIBase, so extending UIBase
makes sense, and UIBase as a typeNames property.

All Royale components are deployed in SWCs, and every SWC has a
defaults.css file.  You should be able to copy an existing SWC or I think
I created a small SWC in that BarcodeScanner example.

Then the workflow for all Royale users for any Royale UI widget should be
as simple as: add SWC to library path then declare component in MXML or
via AS with "foo = new UIWidget();addElement(foo)".  We want to try to
encapsulate any glue code as much as possible.  The instructions for use
should not also have "then copy this snippet into your app".  That snippet
should be part of the component's code since everybody will need to use it
and then all components will be used in the same way.  Less looking in the
documentation for snippets is better, IMO.

So, it will be great if you can work towards that goal.  We'll help you
get there.  Don't worry if it takes extra iterations to get there.   Your
work will help inform how we document the process for the next person.

Thanks,
-Alex


On 1/3/18, 1:22 PM, "Olaf Krueger" <[email protected]> wrote:

>Thanks, Alex but I guess I need some more help:
>
>>If you rework ACEEditor.as to have
>>   typeNames = "ACEEditor";
>
>Where comes the "typeName" property from?
>Is it enough to just create it or do I have to inherit my custom ACEEditor
>class from whatever Royale class?
>
>>And in the defaults.css add:
>What is the "default.css" and where it is located?
>
>Thanks for help,
>Olaf
>
>
>
>
>--
>Sent from: 
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-roy
>ale-development.20373.n8.nabble.com%2F&data=02%7C01%7Caharui%40adobe.com%7
>C978971dd5f124a92b47708d552f016a8%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7
>C0%7C636506114038150871&sdata=pSF1%2FerJ4%2BFoBivuleRHKyyuuC1x5hPibUsXSiqy
>Jco%3D&reserved=0

Reply via email to