Mohammed,
Absolutely! I will assume you wish to use the class element for styling 
purposes and so I will focus on that. There are many options for styling a 
table. After you create a new table, click the Edit button and display the 
tables options, navigate to the first option under "Style" called "Template 
(Stylesheet)". this page displays a dropdown with choices that correspond 
to the stylesheets included in the plugin. The dropdown's value is stored 
in the field "tbl-class" and you can manually edit this field with any 
value you wish. an empty value will result in the table inheriting 
TiddlyWiki's table styling. The easiest way to create a new stylesheet is 
to clone $:/plugins/aaldrich/tables/style/standard and give it a new class 
name (tbl-class-name). You will then see your new stylesheet as an option 
on the dropdown. 

Keep this in mind. the class attribute defined in tbl-class is an attribute 
on a div element that acts as a container for the table element. This can 
be seen in: $:/plugins/aaldrich/tables/macro.

Another option is to override parts of the selected stylesheet. In the Edit 
menu navigate to "Override (Inline Styles)". Here you can enter css 
properties for the table element or the div container that will take 
priority over the stylesheet. 

Lastly, there are two more options Under "Style" in the Edit menu. "Column 
Groups" and "Advanced Styles". 

   - Column groups are useful for applying css properties to individual 
   columns. Here is some more info on 
   that: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup
   - Advanced Styles documents a method for applying a style to an 
   individual row in a table.

Thank you for your questions and feedback Mohammad. I hope this helps,
Alan


On Wednesday, September 18, 2019 at 12:16:05 AM UTC-5, Mohammad wrote:
>
> Thanks Arlen! TiddlyTables is a great contribution!
>
> One question: Is it possible to simply add classes or override the default 
> classes for Tables?
>
> --Mohammad
>
> On Wednesday, September 18, 2019 at 8:22:35 AM UTC+4:30, Alan Aldrich 
> wrote:
>>
>> All,
>> Thank you for your feedback. I couldn't agree more that the documentation 
>> for TiddlyTables needs improvement. I will try my best to do so in future 
>> releases. I have tried to integrate some of the documentation into the Edit 
>> menu. Advanced Styles, Advanced Features, More Columns and Getting Started 
>> all contain helpful information, but more is on the way. In the meantime, I 
>> started writing down a few paragraphs to cover a couple of the more 
>> advanced topics. I highly recommend reading through it and walking through 
>> the example I give. It can be found here: 
>> http://tiddlytables.tiddlyspot.com/#Digging%20deeper%20into%20TiddlyTables
>>
>> Another resource is the task manager example plugin (shown in the 
>> sidebar) which illustrates most of TiddlyTable's use cases. It consists of 
>> three separate tables, one nested inside the other:
>>
>> $:/plugins/aaldrich/task-manager/realm-table
>> $:/plugins/aaldrich/task-manager/project-table
>> $:/plugins/aaldrich/task-manager/task-table
>>
>> To enable the Edit menu for these tables, change the value of the field 
>> "tbl-show-edit" to "true" for each. This will enable the "Edit" button, 
>> making it easier to see how these tables were built and how they work 
>> together.
>>
>> Let me know if this information was helpful and/or if there are any other 
>> topics I should focus on in lieu of formal documentation. 
>>
>> Thanks,
>> Alan
>>
>>
>> On Tuesday, September 17, 2019 at 10:49:01 PM UTC-5, Alan Aldrich wrote:
>>>
>>> Tony, 
>>> I am putting together some info that may clarify some of your questions 
>>> and will post that next, but I want to speak to a couple of your bullet 
>>> points:
>>>
>>>
>>>    - A Table of tables filter `[contains:text[<<table>>]]` I did not 
>>>    expect that to work give the special meaning of < and >
>>>
>>> I have not played much with the contains operator, but I am also 
>>> pleasantly surprised to see that you can put virtually anything in as its 
>>> parameter and it will search for it. not only will it do < and > but you 
>>> can search on just about any symbol except square brackets. This of course 
>>> has nothing to do with my plugin, but with the contains operator. The 
>>> filter you mention here is searching all tiddlers "text" fields for 
>>> <<table>> which is a fairly safe way to determine if the tiddler is a table 
>>> or not.
>>>
>>>    - I am not sure if I can change the template for the title column 
>>>    for a specific table?
>>>    
>>> You absolutely can and this is what makes TiddlyTables so powerful. 
>>> Basically, the elements of the table are all modular and are controlled by 
>>> templates. I will go into detail about editing templates in my next post, 
>>> but the template that controls the body of the title column 
>>> is: $:/plugins/aaldrich/tables/template/body/title.
>>>
>>>
>>>        I note you can place any table in the sidebar with $:/tags/SideBar 
>>> but you need to set the tiddler
>>>        eg
>>>        <$tiddler tiddler="Has Changed">
>>>        <<table>>
>>>        </$tiddler>
>>>
>>> Let me explain what is happening here. A TiddlyTable gets its parameters 
>>> from the fields that are created when the table is created. Essentially, a 
>>> table requires its own tiddler to store these fields. We can call them 
>>> "table tiddlers". Notice when you click the table button a new tiddler is 
>>> created and it contains the default table. If you edit this tiddler you 
>>> will see its text is just <<table>> and it has 29 fields that serve as its 
>>> parameters. When you set TiddlerA's text to use the tiddler widget like you 
>>> show here, what you are really asking is for TiddlyTables to store these 29 
>>> parameters to a Tiddler called "Has Changed" but render in TiddlerA. The 
>>> same effect can be achieved using transclusion, and in the case of using 
>>> "$:/tags/SideBar" 
>>> the table MUST be transcluded or it will not find the parameters its 
>>> looking for. This is a limitation of the "non-standard" implementation of 
>>> macros I am using, and I mention it in Known Issues/Limitations. My next 
>>> post will have a link in it that describes this further.
>>>
>>> These are great questions, keep them coming!
>>>
>>>
>>>
>>> On Tuesday, September 17, 2019 at 1:44:19 AM UTC-5, TonyM wrote:
>>>>
>>>> For fun whilst learning more on TiddlyTables
>>>>
>>>>
>>>>    - SImply put it is a new way of looking at any filter
>>>>    - A Table of tables filter `[contains:text[<<table>>]]` I did not 
>>>>    expect that to work give the special meaning of < and >
>>>>    - Are tables totally self contained? Looks like it, The advantage 
>>>>    is TiddlyTables plus a bunch of tables to access various system 
>>>> information 
>>>>    would be very helpful
>>>>    - I am not sure if I can change the template for the title column 
>>>>    for a specific table?
>>>>
>>>> I note you can place any table in the sidebar with $:/tags/SideBar but 
>>>> you need to set the tiddler
>>>> eg
>>>> <$tiddler tiddler="Has Changed">
>>>> <<table>>
>>>> </$tiddler>
>>>>
>>>> I will keep exploring this.
>>>>
>>>> I would like to see a one button create table from filter.
>>>>
>>>> Tony
>>>>
>>>> On Tuesday, September 17, 2019 at 3:53:36 PM UTC+10, TonyM wrote:
>>>>>
>>>>> Alan,
>>>>>
>>>>> Thanks, I am just exploring the possibilities of tiddlytables. Since 
>>>>> the minimum one needs is a filter it is a great way to simply list 
>>>>> tiddlers 
>>>>> of any type. But then a custom table with custom fields can expose other 
>>>>> details.
>>>>>
>>>>>
>>>>> I also appreciate the drop down on the *Query Records* (tbl-filter) - 
>>>>> filter syntax
>>>>> Quite a few people have being asking for help for writing filters and 
>>>>> you have already done it.
>>>>>
>>>>> It would be great in an editor toolbar button as well.
>>>>>
>>>>> A simple example is
>>>>> [all[shadows]prefix[$:/info]!prefix[$:/info/browser]] [[$:/info/
>>>>> browser/name]]
>>>>>
>>>>> and show the text field.
>>>>>
>>>>> Regards
>>>>> Tony
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Tuesday, September 17, 2019 at 2:58:04 PM UTC+10, Alan Aldrich 
>>>>> wrote:
>>>>>>
>>>>>> I have uploaded a new version of TiddlyTables that includes a 
>>>>>> confirmation when deleting. Thank you for your excellent comments and 
>>>>>> feedback. 
>>>>>>
>>>>>> http://tiddlytables.tiddlyspot.com/
>>>>>>
>>>>>> Cheers,
>>>>>> Alan
>>>>>>
>>>>>> On Tuesday, September 10, 2019 at 6:17:44 PM UTC-5, Diego Mesa wrote:
>>>>>>>
>>>>>>> Hey Alan,
>>>>>>>
>>>>>>> I see that your plugin uses the ActionDeleteTiddlerWidget:
>>>>>>>
>>>>>>> https://tiddlywiki.com/#ActionDeleteTiddlerWidget
>>>>>>>
>>>>>>> According to the docs:
>>>>>>>
>>>>>>> There are several differences compared to the WidgetMessage: 
>>>>>>>> tm-delete-tiddler 
>>>>>>>> <https://tiddlywiki.com/#WidgetMessage%3A%20tm-delete-tiddler>:
>>>>>>>>    
>>>>>>>>    - *The user is not prompted to confirm the deletion*
>>>>>>>>
>>>>>>>>
>>>>>>>>    - No automatic updating of the story list
>>>>>>>>
>>>>>>>>
>>>>>>>>    - No special handling of draft tiddlers
>>>>>>>>
>>>>>>>> I think switching deletion to the tm-delete-tiddler message would 
>>>>>>> handle the confirmation.
>>>>>>>
>>>>>>> Best,
>>>>>>> Diego
>>>>>>>
>>>>>>>
>>>>>>> On Tuesday, September 10, 2019 at 11:02:47 AM UTC-5, Alan Aldrich 
>>>>>>> wrote:
>>>>>>>>
>>>>>>>> I agree the delete column should have a confirmation. I will try to 
>>>>>>>> get that in the next version. Do you know of a simple and standard way 
>>>>>>>> to 
>>>>>>>> accomplish this?
>>>>>>>
>>>>>>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6a306450-57f2-4ab5-8070-7f6ba94514f4%40googlegroups.com.

Reply via email to