Excellent, thanks

Worked Perfectly!

On May 25, 12:59 pm, Matt Jones <[email protected]> wrote:
> On May 25, 2010, at 4:55 AM, Pete wrote:
>
>
>
>
>
> > I probably wasn't explaining it very well....
>
> > I am wanting a column within my table plus to display an icon - I have
> > a method which retrieves an icon from a specific directory and shows
> > in a standard page view, but when this method is called
> > in the table plus, I just get a display of the directory.... e.g
>
> > <table-plus with="&@version" fields="this, created_at, getIcon " >
> > (the getIcon column is the method to grab the icon from the directory)
>
> > the method just concatenates the appropriate filename and directory -
> > in the view page -this is just called as <img src="&this.getIcon" />
> > which displays the icon - but when I call the method in the <table-
> > plus> I just get     /directory/icons/icon.png      displayed in the
> > table,
>
> > am I just doing something that is not possible within the <table-
> > plus>?
>
> Here's one way to do it:
>
> <table-plus with="&@version" fields="this, created_at, get_icon">
>    <get-icon-heading:></get-icon-heading:>
>    <get-icon-view:>
>      <img src="#{this}" />
>    </get-icon-view:>
> </table-plus>
>
> I took the liberty of conforming the get_icon method to Rails  
> conventions (underscore rather than camelCase).
>
> --Matt JOnes
>
> --
> 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.- Hide quoted text -
>
> - Show quoted text -

-- 
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.

Reply via email to