07-01-2009 03:56 PM
Hi,
i use your standard scrolling Tumbnail module, TileList with ListItem.
Is it possible to change the bordersize or ist it a standard value? I can't find
a paramater in the BEML Reference. I can only set the thumnailsize and an inset to expand the "border", but thats
not the same if i like a different background color and different bordercolor.
Thanx for your help.
Solved! Go to Solution.
07-02-2009 12:36 PM
So, you essentially want to create two borders around the ThumbnailButton? That is, a border and a background?
Maybe you could use the ThumbnailButton imageInset as the border, and then wrap the ThumbnailButton element inside of another container like a VBox and give it a background color and padding.
For instance, this should create a 3 pixel red border around the ThumbnailButton, and then the ThumbnailButton uses as 3 pixel imageInset to create a second border around the actual image.
<VBox backgroundColor='0xFF0000' height='66' width='74' padding='3'> <ThumbnailButton height='60' data='{currentItem}' source='{currentItem.thumbnailURL}' imageInset='3' /> </VBox>
07-02-2009 04:16 PM - edited 07-02-2009 04:36 PM
You can create a border effect by putting one box inside another. For example this BEML would make a 10 pixel black border around each ListItem:
<List id='videoList' rowHeight='98' automaticAdvance='true'
data='{playlistTabs.selectedItem.videoDTOs}' selectOnClick='true'
itemInsetV='4' itemLeading='2'>
<ListItem boxType="vbox" backgroundColor="0x000000" padding="10">
<HBox backgroundColor="0xffffff">
<Spacer width='8'/>
<VBox width='80' height='74' vAlign='middle'>
<ThumbnailButton height='60' data='{currentItem}'
source='{currentItem.thumbnailURL}'/>
</VBox>
<Spacer width='7'/>
<VBox>
<Spacer height='3'/>
<TitleLabel height='18'
text='{currentItem.displayName}'
truncate='true'/>
<Label height='52' multiline='true'
text='{currentItem.shortDescription}'
truncate='true'/>
</VBox>
<Spacer width='3'/>
</HBox>
</ListItem>
</List>
Note that the height of the list had to increase by twice the value of the padding attribute to make room for the border.
Does that help?
Brightcove Inc., a leading global provider of cloud content services, provides a family of products used to publish and distribute the world's professional digital media. The company's products include Brightcove Video Cloud, the market-leading online video platform, and Brightcove App Cloud, the pioneering content app platform. Together, more than 4,200 customers in 50 countries rely on Brightcove's cloud content services to build and operate exceptional media experiences across PCs, smartphones, tablets and connected TVs.
Brightcove Inc.
© 2012 Brightcove Inc.
