You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by Lane Friesen <fr...@hotmail.com> on 2015/02/13 12:00:45 UTC

TLF tables examples

Can someone point me to actual coded working examples of the use of tables in TLF in 4.14.0. Is there documentation?

Lane. 

Re: TLF tables examples

Posted by jude <fl...@gmail.com>.
Piotr,
That is more of a design doc. There isn't really any documentation.

Lane,
I don't think import or export was added. I don't think it was meant to be
a full support of Tables. You'll have to ask Harbs about what his plans are
or were. I think he posted his objectives in one of the recent threads.
There is initial work on export of tables but it is incomplete. There is no
import. If you're interested I could probably point you to the files you
would need to work on to add that. I've uploaded a project I used when
testing some features but the API has changed some since then,
http://www.flexcapacitor.com/testing/tlftables/TableExplorer.html so you
will encounter bugs. You'll need to ask or post back to the list. I'll try
to keep the example updated (or someone can add it to the repository) with
any changes.

Things you can try,

Selection
1. Click Add Editable Table button on the right under Elements. A table
will be added and you'll see the markup in the TextFlowMarkup text area.
You can see initial export of table, tr and td markup and it does not show
the content.
2. Under the Selection section, click the select table, select row, select
column, select cell, select cells, select cell content, select clear
selection. Click the random button in the Selection section to randomize
the selections.

Reload the page

Adding and removing rows:
1. Click Add Table button under the TextFlow text area.
2. Click Add Row or Subtract row.


On Fri, Feb 13, 2015 at 4:07 PM, Lane Friesen <la...@hotmail.com>
wrote:

> Thanks Piotr. I gather from your example that the following html code
> cannot be inserted into text.
>
> <table style="width:100%">
>  <tr>
>    <td>Jill</td>
>    <td>Smith</td>
>    <td>50</td>
>  </tr>
>  <tr>
>    <td>Eve</td>
>    <td>Jackson</td>
>    <td>94</td>
>  </tr>
> </table>
>
> That is, html markup has not been expanded to handle tables. Tables can be
> used only if coded specifically as in the example at
> http://pastebin.com/dytnv32a. Tables work only with RichEditableText and
> not with TextArea or anything else.
>
> Thanks,
>
> Lane.
> --------------------------------------------------
> From: "piotrz" <pi...@gmail.com>
> Sent: Friday, February 13, 2015 11:18 PM
> To: <us...@flex.apache.org>
> Subject: Re: TLF tables examples
>
>
>  Hi Lane,
>>
>> Draft of the documentation provided by Harbs and Jude:
>> https://docs.google.com/document/d/1sT0IAiMfIOBVgmo8wwF6ZZviuNFcW
>> 2bUfQoj0zDmSog
>>
>> Some sample application with Tables:
>> http://pastebin.com/dytnv32a
>>
>> Piotr
>>
>>
>>
>> -----
>> Apache Flex PMC
>> piotrzarzycki21@gmail.com
>> --
>> View this message in context: http://apache-flex-users.
>> 2333346.n4.nabble.com/TLF-tables-examples-tp9580p9587.html
>> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>>
>>

Re: TLF tables examples

Posted by Harbs <ha...@gmail.com>.
We have not done support for markup yet. Currently the only way to create tables is by adding the elements directly.

When I have the spare time, I hope to work on this unless someone else gets to it first.

On Feb 14, 2015, at 2:07 AM, Lane Friesen <la...@hotmail.com> wrote:

> Thanks Piotr. I gather from your example that the following html code cannot be inserted into text.
> 
> <table style="width:100%">
> <tr>
>   <td>Jill</td>
>   <td>Smith</td>
>   <td>50</td>
> </tr>
> <tr>
>   <td>Eve</td>
>   <td>Jackson</td>
>   <td>94</td>
> </tr>
> </table>
> 
> That is, html markup has not been expanded to handle tables. Tables can be used only if coded specifically as in the example at http://pastebin.com/dytnv32a. Tables work only with RichEditableText and not with TextArea or anything else.
> 
> Thanks,
> 
> Lane.
> --------------------------------------------------
> From: "piotrz" <pi...@gmail.com>
> Sent: Friday, February 13, 2015 11:18 PM
> To: <us...@flex.apache.org>
> Subject: Re: TLF tables examples
> 
>> Hi Lane,
>> 
>> Draft of the documentation provided by Harbs and Jude:
>> https://docs.google.com/document/d/1sT0IAiMfIOBVgmo8wwF6ZZviuNFcW2bUfQoj0zDmSog
>> 
>> Some sample application with Tables:
>> http://pastebin.com/dytnv32a
>> 
>> Piotr
>> 
>> 
>> 
>> -----
>> Apache Flex PMC
>> piotrzarzycki21@gmail.com
>> --
>> View this message in context: http://apache-flex-users.2333346.n4.nabble.com/TLF-tables-examples-tp9580p9587.html
>> Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: TLF tables examples

Posted by Lane Friesen <la...@hotmail.com>.
Thanks Piotr. I gather from your example that the following html code cannot 
be inserted into text.

 <table style="width:100%">
  <tr>
    <td>Jill</td>
    <td>Smith</td>
    <td>50</td>
  </tr>
  <tr>
    <td>Eve</td>
    <td>Jackson</td>
    <td>94</td>
  </tr>
</table>

That is, html markup has not been expanded to handle tables. Tables can be 
used only if coded specifically as in the example at 
http://pastebin.com/dytnv32a. Tables work only with RichEditableText and not 
with TextArea or anything else.

Thanks,

Lane.
--------------------------------------------------
From: "piotrz" <pi...@gmail.com>
Sent: Friday, February 13, 2015 11:18 PM
To: <us...@flex.apache.org>
Subject: Re: TLF tables examples

> Hi Lane,
>
> Draft of the documentation provided by Harbs and Jude:
> https://docs.google.com/document/d/1sT0IAiMfIOBVgmo8wwF6ZZviuNFcW2bUfQoj0zDmSog
>
> Some sample application with Tables:
> http://pastebin.com/dytnv32a
>
> Piotr
>
>
>
> -----
> Apache Flex PMC
> piotrzarzycki21@gmail.com
> --
> View this message in context: 
> http://apache-flex-users.2333346.n4.nabble.com/TLF-tables-examples-tp9580p9587.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
> 

Re: TLF tables examples

Posted by piotrz <pi...@gmail.com>.
Hi Lane,

Draft of the documentation provided by Harbs and Jude: 
https://docs.google.com/document/d/1sT0IAiMfIOBVgmo8wwF6ZZviuNFcW2bUfQoj0zDmSog

Some sample application with Tables:
http://pastebin.com/dytnv32a

Piotr



-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/TLF-tables-examples-tp9580p9587.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.