Hoppa till huvudinnehållet

Result-list component - more control over list-item height

Kommentarer

4 kommentarer

  • Zack Robison

    I use the Inject CSS Workflow activity to achieve this in several of my apps.  Throw that together with markdown and you have a lot more flexibility than it would first appear.  Some markdown styles (bold, italics, and monospace) create their own DOM elements that can be bound to, I like using the .nth-child pseudoclass to bind to specific parts of my form element items' text.

    That said, this a somewhat kludgey workaround for more flexible item text.  Items' max-height property is much more straightforward to set and won't require the time or creativity, just use the Set Form Element Property activity to give your form element a .styleName property and use that to bind to your items.

    1
  • Tor Røkkum Børset

    A workaround is better than sticking with the default solution!

    I am not quite sure I understand how to achieve what you suggest. Could you elaborate a bit, my wife tells me im a slow learner. Finding a solution to this would be magnificent seeing this is a problem on several of my apps. 

    2
  • Kevin Fowler

    I'm also searching for any examples/help on using the Inject CSS activity in the Results List Component of VSW.

    1
  • Tor Røkkum Børset

    Zack Robison , it sounds like youre suggestion is spot on for a workaraound. Could you give an example of how you set the .styleName property and access this through the Inject CSS workflow activity? 

    0

Du måste logga in om du vill lämna en kommentar.