skip-blank-fields functionality to field-list
Reported by Kieran P | March 1st, 2010 @ 10:54 PM | in Hobo 1.4
New tag attribute:
skip-blank-fields
Usage:
<field-list: skip-blank-fields/>
Desired effect:
It should skip any fields that are blank from being printed on the show page
Example working code:
<field-list: skip="#{this.attributes.collect { |k,v| k if v.blank? }.compact.join(', ')}"/>
Additional request:
Without specifying an fields="" or skip="", all fields should be shown if not already.
<field-list:/>
Comments and changes to this ticket
-
Matt Jones September 14th, 2011 @ 09:41 PM
- Tag changed from dryml, field-list, skip-blank-fields to dryml, enhancement, field-list, skip-blank-fields
- Milestone set to Hobo 1.4
- Milestone order changed from 0 to 0
-
Matt Jones September 14th, 2011 @ 09:41 PM
- State changed from new to open
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »