I never could really get this to work, but this would be a truly great feature to be able to use and would give a much richer user interface.
If there is anyone with the time and ability to write a recipe on how to do this, that would be really cool :-) On Apr 26, 9:27 am, Jeremy Savoy <[email protected]> wrote: > Seems like I could use something like this jQuery code, but since the > class name for each "parent" row is dynamically assigned for table- > plus, I'm not quite sure how to implement this against table-plus > rows ... > > jQuery('.class1 a').click( function() { > $(this).next('.class2').slideToggle(); > > }); > > On Apr 21, 5:23 pm, kevinpfromnm <[email protected]> wrote: > > > > > > > the row colors is harder to remember as it's a bit more buried but you > > need the css class applied to the second row based on what the first > > one does. look at the source for <table> at what class gets added to > > the <tr> > > > id is an attribute and you would do something like > > id="secondrow_#{model_id}" Note: I'm doing this from memory so > > model_id might not be the method name. > > > On Apr 21, 7:05 am, Jeremy Savoy <[email protected]> wrote: > > > > Thanks Kevin. Unfortunately this doesn't seem to play well with > > > <controls:/> (they disappear) nor does it fit seemlessly into the > > > alternating row colors, as the added row after the second record does > > > not pick up the CSS of the second row. > > > > I'm not clear on how to "set an ID based on your model", as you > > > specify in your first response above. > > > > This may be fixed easily, I'm not sure .... I'm trying to pick up > > > ruby, rails, and hobo (which has many parts) all at once, along with > > > my limited experience with javascript, CSS and HTML ...... I'm much > > > more comfortable dereferencing pointers in the Linux kernel or writing > > > a Flex app in mxml/AS3 :-) > > > > But if we never leave our comfort zone, how boring would life be !! > > > > On Apr 20, 4:25 pm, kevinpfromnm <[email protected]> wrote: > > > > > for it to be part of the table, you need to add a cell. <tr><td > > > > colspan="some #">stuff<... > > > > > On Apr 19, 2:43 pm, Jeremy Savoy <[email protected]> wrote: > > > > > > When I add this to my code: > > > > > > <after-tr:> > > > > > <tr>Hello!</tr> > > > > > </after-tr:> > > > > > > The <tr>Hello!</tr> does show up in the page source and in the right > > > > > place in the source, but it is actually displayed above the table to > > > > > the far left of the search box. > > > > > > Is this just CSS that needs to be adjusted or is there something else > > > > > going on? I notice the <tr>'s in the table actually use class="odd > > > > > contact model::contact:1" or class="even contact model::contact:2" > > > > > > I'll dig deeper into this later this evening. > > > > > > --jeremy > > > > > > On Apr 19, 3:39 pm, kevinpfromnm <[email protected]> wrote: > > > > > > > There's nothing specific in hobo to do this but you could do it > > > > > > yourself pretty easily. Add an <after-tr:> tag, set an id based on > > > > > > the model and put your stuff there. You still have to write the > > > > > > javascript to show/grab content etc. > > > > > > > On Apr 19, 1:28 pm, Jeremy Savoy <[email protected]> wrote: > > > > > > > > Is it possible to have an expanding row in table-plus? > > > > > > > > For example, I have a contact model that is displayed via > > > > > > > table-plus. > > > > > > > I would like to only show the contact's name information (title, > > > > > > > first, middle, last, suffix) initially in the table, and then > > > > > > > when I > > > > > > > click on a specific row have itexpandto show a styled div that > > > > > > > contains other information about the contact, such as address > > > > > > > information etc. > > > > > > > > I'm envisioning fancy javascript transistions etc. > > > > > > > > Is this currently possible with table-plus? I searched this group > > > > > > > for > > > > > > > "table-plusexpandrow" but did not see any results. > > > > > > > > -- > > > > > > > You received this message because you are subscribed to the > > > > > > > Google Groups "Hobo Users" group. > > > > > > > To post to this group, send email to [email protected]. > > > > > > > To unsubscribe from this group, send email to > > > > > > > [email protected]. > > > > > > > For more options, visit this group > > > > > > > athttp://groups.google.com/group/hobousers?hl=en. > > > > > > > -- > > > > > > You received this message because you are subscribed to the Google > > > > > > Groups "Hobo Users" group. > > > > > > To post to this group, send email to [email protected]. > > > > > > To unsubscribe from this group, send email to > > > > > > [email protected]. > > > > > > For more options, visit this group > > > > > > athttp://groups.google.com/group/hobousers?hl=en. > > > > > > -- > > > > > You received this message because you are subscribed to the Google > > > > > Groups "Hobo Users" group. > > > > > To post to this group, send email to [email protected]. > > > > > To unsubscribe from this group, send email to > > > > > [email protected]. > > > > > For more options, visit this group > > > > > athttp://groups.google.com/group/hobousers?hl=en. > > > > > -- > > > > You received this message because you are subscribed to the Google > > > > Groups "Hobo Users" group. > > > > To post to this group, send email to [email protected]. > > > > To unsubscribe from this group, send email to > > > > [email protected]. > > > > For more options, visit this group > > > > athttp://groups.google.com/group/hobousers?hl=en. > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "Hobo Users" group. > > > To post to this group, send email to [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]. > > > For more options, visit this group > > > athttp://groups.google.com/group/hobousers?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Hobo Users" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group > > athttp://groups.google.com/group/hobousers?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Hobo Users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/hobousers?hl=en. -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
