dart - Wanted: Rikulo UXL example(s) -


i want uxl working dart editor. i'm afraid feel sample code on uxl overview either out of date or lacks critical steps let perform. (see also: what rikulo dart really?, directs people blogs).

i want speed uxl mark-up dart environment. examples i've found on blog/documentation , seem incomplete.

and seems may not 'just me' find examples confusing. uxl mark-up 'abc.uxl' or 'abc.uxl.xml' file? i'm looking @ rikulo because see kind of extremely helpful framework see.

that said, please people, provide 3 or 4 examples work few tweaks , bit of thought.

i'll put same thing out there others wanting doing tools , frameworks. examples teach. , make sure examples work. make them part of unit testing.

cheers, will.

afaik, samples in the document shall work fine. if changed spec, update document accordingly.

you can name .uxl or .uxl.xml, i'd suggest .uxl.xml if editor supports xml. otherwise, have configure recognize .xul.

not sure critical steps mean or expect. better provide more specific question.


a helpful example [ed. will] ...

i made small addition scrollview example saved on github uxl project.

scrollview.uxl.xml

<!-- scrollviewtemplate --> <?dart part of scrollviewdemo; ?>  <template name="scrollviewtemplate" args="rows: 30, cols: 30">   <scrollview class="scroll-view"   profile="location: center center; width: 80%; height: 80%">     <apply foreach="r = 0; r < rows; ++r">       <apply foreach="c = 0; c < cols; ++c">         <view style="border: 1px solid #553;                background-color: ${cssutil.color(250 - r * 4, 250 - c * 4, 200)}"               left="${r * 50 + 2}" top="${c * 50 + 2}"               width="${46}" height="${46}">          ( ${r}, ${c} )         </view>       </apply>     </apply>   </scrollview> </template> 

build.dart

//import 'package:polymer/builder.dart'; import 'package:rikulo_uxl/uc.dart';  void main(list<string> args) {     build( args ); } 

what makes different github example?

  1. this includes build.dart file
  2. each cell shows coordinates. shows 2 things.
    • how use uxl values inside uxl mark-up ,
    • in runtime shows how scrolling works cells
  3. this demo runs on dart editor download
    • dart editor version 1.3.0.dev_06_01 (dev)
    • dart sdk version 1.3.0-dev.6.1
    • the sample didn't work 6.0 version

i point out me, seems unusual need download uxl project find 1 demo. , need clarify 'demo' might "me" code downloaded wasn't example of demonstrated 1 or 3 uxl features.

i understand people busy , stuff. , still, in opinion testing, integration, documentation , examples make 80% of project other 20% being code. others have different opinions. (i think proportions congruent if have done more 5 years though. guessing.)


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -