Hi sankar,
I think we can make this part of MDL swc
I was trying to test it in MDLExample but compiler breaks with this part of
CSS:
table.tableSection tr>td:last-child {
/* removing fraction of width i.e 2% to align the tbody columns
with thead columns. */
/* It is must as we need to consider the tbody scroll width too */
/* if the width is in pixels, then (width - 18px) would be enough */
width: 31%;
}
/** for older browsers (IE8), if you know number of columns in your
table **/
table.tableSection tr>td:first-child + td + td {
width : 31%;
}
/Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLExample/src/main/flex/App.mxml]
Unexpected exception 'java.util.NoSuchElementException'.
/Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLExample/src/main/flex/App.mxml
Internal error in ABC generator subsystem, when generating code for:
/Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLExample/src/main/flex/App.mxml:
java.util.NoSuchElementException: can't look backwards more than one token
in this stream
at org.antlr.runtime.misc.LookaheadStream.LB(LookaheadStream.java:159)
at org.antlr.runtime.misc.LookaheadStream.LT(LookaheadStream.java:120)
at
org.antlr.runtime.RecognitionException.extractInformationFromTreeNodeStream(RecognitionException.java:144)
at
org.antlr.runtime.RecognitionException.<init>(RecognitionException.java:111)
at
org.antlr.runtime.MismatchedTreeNodeException.<init>(MismatchedTreeNodeException.java:42)
at
org.antlr.runtime.tree.TreeParser.recoverFromMismatchedToken(TreeParser.java:135)
at org.antlr.runtime.BaseRecognizer.match(BaseRecognizer.java:115)
at
org.apache.flex.compiler.internal.css.CSSTree.declarationsBlock(CSSTree.java:1722)
at org.apache.flex.compiler.internal.css.CSSTree.ruleset(CSSTree.java:783)
at
org.apache.flex.compiler.internal.css.CSSTree.stylesheet(CSSTree.java:286)
at
org.apache.flex.compiler.internal.css.CSSDocument.parse(CSSDocument.java:81)
at
org.apache.flex.compiler.internal.tree.mxml.MXMLStyleNode.getCSSDocument(MXMLStyleNode.java:88)
at
org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processMXMLStyle(MXMLClassDirectiveProcessor.java:4253)
at
org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processNode(MXMLClassDirectiveProcessor.java:987)
at
org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:861)
at
org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:831)
at
org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processMainClassDefinitionNode(MXMLClassDirectiveProcessor.java:653)
at
org.apache.flex.compiler.internal.as.codegen.GlobalDirectiveProcessor.declareMXMLDocument(GlobalDirectiveProcessor.java:518)
at
org.apache.flex.compiler.internal.as.codegen.DirectiveProcessor.processNode(DirectiveProcessor.java:232)
at
org.apache.flex.compiler.internal.as.codegen.DirectiveProcessor.traverse(DirectiveProcessor.java:188)
at
org.apache.flex.compiler.internal.as.codegen.ABCGenerator.generate(ABCGenerator.java:122)
at
org.apache.flex.compiler.internal.units.MXMLCompilationUnit.handleABCBytesRequest(MXMLCompilationUnit.java:199)
at
org.apache.flex.compiler.internal.units.CompilationUnitBase.processABCBytesRequest(CompilationUnitBase.java:873)
at
org.apache.flex.compiler.internal.units.CompilationUnitBase.access$300(CompilationUnitBase.java:108)
at
org.apache.flex.compiler.internal.units.CompilationUnitBase$4$1.call(CompilationUnitBase.java:310)
at
org.apache.flex.compiler.internal.units.CompilationUnitBase$4$1.call(CompilationUnitBase.java:306)
at
org.apache.flex.compiler.internal.units.requests.RequestMaker$1.call(RequestMaker.java:228)
at
org.apache.flex.compiler.internal.units.requests.RequestMaker$1.call(RequestMaker.java:222)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3.196 s
....
We need some help in the compiler part to fix this.
Regarding your question, in theory only adding "tableSection" so className
will be sufficient to make it work
(className="customTableRowItemRenderer tableSection"), but I'll need to try
and see if something more is needed
when fixing the compiler issue, I'll try to make it a property of table
(for example we could have : scrollable="true")
2017-01-25 12:27 GMT+01:00 sankar <[email protected]>:
> Hi Carlos,
>
> I do agree for the first phase of release, whatever you did, is spell
> bounding. And there is no question on that.
>
> I'll be happy to help you to make the MDL components more feature-rich per
> real-life application needs. Although, I'm not very familiar with
> JavaScript/CSS parts but trying to learn their behavior as I'm going :)
>
> For 1, it that checkbox problem somehow fix, then it'll also help us
> resolve
> the runtime update to Table component implementation. At this moment, I'm
> taking that checkbox is the only way to select a row of item. But we shall
> need an event dispatcher by Table upon checkbox selection, though.
>
> The scrolling stuff, I think those solution (you supplied the links)
> exactly
> what we need. But I'm unable to put the correct style in correct place
> (thanks to my unfamiliarity to CSS).
>
> I assume this part only what we needed to make the Table specific height
> and
> scroll (?)
>
> > table.tableSection tbody {
> > overflow: auto;
> > height: 300px;
> > }
>
> My MDL Table already has a class name assigned, where and how am I suppose
> to add the above mentioned style, can you please guide?
>
> > <mdl:Table shadow="2" selectable="true"
> > className="customTableRowItemRenderer" percentWidth="100">
>
> Thanks!
>
>
>
> --
> View this message in context: http://apache-flex-
> development.2333347.n4.nabble.com/Re-git-commit-flex-asjs-
> refs-heads-develop-MDL-Table-component-and-example-initial-
> implementation-tp58260p58679.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>
--
Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es
Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.
De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.