royale-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] flexicious commented on issue #343: Question : IS there a way to embed third party components within a Royale app
Date Sun, 11 Nov 2018 02:22:54 GMT
flexicious commented on issue #343: Question : IS there a way to embed third party components
within a Royale app
URL: https://github.com/apache/royale-asjs/issues/343#issuecomment-437638007
 
 
   Maybe some context might help here
   This is for a HTML port of our Flex product (Which is essentially the flex DataGrid with
a lot of bells and whistles)
   
   itemClick is actually not a property, its a event type that we defined in our HTML component.
When we ported our code from Flex to HTML, we wrote our own DisplayObject, EventDispatcher,
UIComponent etc. so itemClick in this context is the exact same thing we had in Flex, an event
defined on a DataGrid. When you pass in that in config, we translate it to this.addEventListener("itemClick",
functionYouPassedIn). Think of our XML (or JSON) config as an alternative to MXML that does
not exist on the HTML side. 
   
   But that said - is there an example that does sorta what you describe above?
   
   And for the second part in regards to the question about grids api. The JS component we
have an extensive API - just like the Flex Datagrid did. I looked at your aceeditor here:
   https://github.com/apache/royale-asjs/blob/bdd5e07aae1e5e9f22cee9f38c19f04a281572f7/frameworks/projects/Ace/src/main/royale/org/apache/royale/ace/ACEEditor.as
   
   Im a bit confused about
   			editor = ace["edit"](id); 
   --> Is "ace" here defined on the window object? What is id? 
   
   Second,
   public function set theme(value:String):void 
   		{ 
   			_theme = value; 
   			editor.setTheme(value); 
   		} 
   
   If I am understanding this, editor is the JS object the third party library creates, and
setTheme is a method on it that this wrapper is calling when royale executes the theme setter.
We have hundreds of such methods, is there a way to ask royale to just marshall all calls
like setDataProvider, setColumns etc to the underlying JS object? OR may be I am misunderstanding
what this is.
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message