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 Sat, 10 Nov 2018 18:44:02 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-437608485
 
 
   Ok this is great, so let me delve specifically into what we're trying to do, and whether
its even possible. We have a HTML based datagrid component, originally written for Flex, but
we ported to HTML. http://htmltreegrid.com/ . IT takes markup like 
   
   
   `<grid ...  itemClick="functionDefinedInActionScript" ... ><level ><columns><column
columnLockMode="left" dataField="investor"  ...  />
   ...
   </columns></level></grid>`
   
   or a JSON object similar to above, except itemClick would point to a function
   {
     itemClick : functionDefinedInActionScript
   }
   
   the grid then either evals "functionDefinedInActionScript" if you pass in a string or references
it directly if you pass in a function.
   
   So the question is, is there a way I can define functionDefinedInActionScript and then
the grid "knows" to call it? I would bind it to this before passing it in functionDefinedInActionScript.bind(this)
   
   
   Second question, the grid has an extensive API. So how would i go about calling lets say
   
   grid.rebuild() or grid.setDataProvider()?
   
   

----------------------------------------------------------------
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