Hi Jerad, Please find my comments inline.
Thanks, Sachith On Wed, Jul 20, 2016 at 10:47 PM, Jerad Rutnam <[email protected]> wrote: > Hi Sachith, > > This concern was raised and we are trying to figure it out a way to apply > styling on demand to gadgets, perhaps by using a config. But right now with > shindig limitations it is not possible. > > But IMO this is a feature for advance developers who creates gadgets from > the scratch. Which is not the primary use case. Developers who create > custom gadgets from the scratch should apply necessary custom styling to > the gadgets that they develop. Because Dashboard Server already have a > feature to keep gadget templates and generate gadgets using them. I think > that covers the primary use case for the end user. > In the DS only scenarios yes, you might not need to use custom gadgets often. But in analytics scenarios, it's almost always the case to use custom gadgets. And it is not a advanced developer scenario IMHO because we do not create everything from the scratch. What we do is take a generic gadget and change the internals(queries, pre-processing, handling pubsubs ...etc). In that case, what I would propose is to have is a generic gadget which would pull the styling from the styling from the pack itself. Why I bought this up is, since the current gadgets have their own styling, when we change the packs, it stands out and IMO it should not be the case. That generic gadget would be the extension point to all the other custom gadgets and it would retain backward/forward compatibility since it does not have to worry about the styling. I feel that it's doable. Having this would considerably speed up the visualization development of analytics for sure. I do agree with you on the point that, if someone creates a gadget from the scratch, the developer needs to worry about the styling ( not the ideal case though). Cheers! > > On Fri, Jul 15, 2016 at 7:59 PM, Chamila De Alwis <[email protected]> > wrote: > >> >> On Fri, Jul 15, 2016 at 9:25 AM, Sachith Withana <[email protected]> >> wrote: >> >>> We do write a lot of custom gadgets in analytics. Is there a way to >>> incorporate the solution above to those as well? So that devs writing >>> custom gadgets don't have to worry about their theme not syncing with other >>> gadgets (generated/precooked). >>> >> >> +1 >> >> If styling hasn't been drifted too far in the custom gadgets, this should >> be the case IMO. >> >> >> Regards, >> Chamila de Alwis >> Committer and PMC Member - Apache Stratos >> Software Engineer | WSO2 | +94772207163 >> Blog: code.chamiladealwis.com >> >> >> > > > -- > *Jerad Rutnam* > *Software Engineer* > > WSO2 Inc. > lean | enterprise | middleware > M : +94 77 959 1609 | E : [email protected] | W : www.wso2.com > > <https://wso2.com/signature> > -- Sachith Withana Software Engineer; WSO2 Inc.; http://wso2.com E-mail: sachith AT wso2.com M: +94715518127 Linked-In: <http://goog_416592669>https://lk.linkedin.com/in/sachithwithana
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
