cancel
Showing results for 
Search instead for 
Did you mean: 

htmlb:group -> title instead of htmlb:groupHeader

daniel_humberg
Contributor
0 Kudos
64

When you use a htmlb:Group, there are two ways to add text to the group header. You can use


  <htmlb:group title="hello">
  ...

or


  <htmlb:group>
    <htmlb:groupHeader>
      <htmlb:textView text="hello" />
    </htmlb:groupHeader>
    ...

I'd like to change from the first variant to the second, because I want to add a link to the group-header.

Unfortunately, the header is a little higher if you use the secont variant. Is there a way to overcome this problem? Can I make the groupHeader as small as the title?

Best regards,

Daniel

Accepted Solutions (1)

Accepted Solutions (1)

maximilian_schaufler
Active Contributor
0 Kudos

Did you have a look at the design styles that are used for these elements? You might find some differences there if you compare the source code and style classes in your two ways.

Max

daniel_humberg
Contributor
0 Kudos

yes, the textview generates a <span> tag with seems to insert a litte padding around the text.

There probably nothing I can do about it.

thx, Daniel

maximilian_schaufler
Active Contributor
0 Kudos

There is always something you can do about it

One way would be to use a <htmlb:findAndReplace> element around your troubling elements and simply replace the HTML code you want to change.

Of course you would have to check that every time you do some SP upgrade, so no very elegant ...

(but it's a way)

Max

Answers (0)