KAWWA Markup Pattern Library


Site Utilities

Action Buttons Bar Component Information

  • Class name: (k-actions-block)
  • Version: 1.0
  • Tapestry Tapestry Integration

Add to list

The action buttons bar offers a structure to place a list of actions plus a text or title contextual to the actions.

Some optional text or title

HTML5 Plain Code

COPY
  1. <div class="k-actions-block">
  2. 	<p class="action-context">Some optional text or title</p>
  3. 	<ul class="k-actions">
  4. 		<li><a href="#" class="bt-print" role="button">print</a></li>
  5. 	</ul>
  6. </div>

CSS Code

COPY
  1. div.k-actions-block {
  2. 	float: left;
  3. 	width: 100%;
  4. 	color: #000;
  5. 	background: #CCC;
  6. 	margin: 0 0 1em;
  7. 	border-top: 4px solid #000;
  8. }
  9. 
                                
  10. 	/* Optional text */
  11. 	.action-context {
  12. 		float: left;
  13. 		width: 25%;
  14. 		font-size: 0.9em;
  15. 		color: #000;
  16. 		background: #CCC;
  17. 		padding: 0.7em 1em 0;
  18. 		margin: 0;
  19. 		border: none;
  20. 	}
  21. 		.action-context + ul.k-actions {float: right; width: 70%; margin: 0;}
  22. 
                                
  23. 
                                

IE Backward Compatibility

In order to correct display bugs for Internet Explorer versions prior to 9, your html pages need to call the following file by Conditional Comments:

Tapestry Integration

Components used to display a list of links. It will implement 3 Kawwa components : ActionButtons, ActionButtonsBar and iconButtons

By default, the component will render a link for each item of your list. But you can override the rendering, by providing block parameters. If you want to override the rendering of the item with an id="i1", you should define a block parameter <p:i1>...</p:i1>

ProductGallery parameters
Name Required Java Type Default Prefix Default Value Description
items true Map<ListOfActionsItem> prop Actions Actions you want to display with this component. You will need to create a List of ListOfActionsItem. If the onlyIcon parameter is set to true, every ListOfActionsItem item should have a value for its classe attribute.
items false Boolean prop false If set to true, the list of actions will be surround by a bar.
items false Boolean prop false If set to true, your list will display only the icon of each item. The label associated to your link will be hidden.

The Template

COPY
  1. <t:kawwa2.listOfActions t:items="items" withBar="true" onlyIcon="false"/>

Java Implementation

COPY
  1. import java.util.ArrayList;
  2. import java.util.List;
  3. 
                                
  4. import net.atos.kawwaportal.components.data.ListOfActionsItem;
  5. 
                                
  6. public class ListOfActions {
  7. 	
  8. 	public List<ListOfActionsItem> getItems(){
  9. 		List<ListOfActionsItem> items = new ArrayList<ListOfActionsItem>();
  10. 		
  11. 		items.add(new ListOfActionsItem("print", "#", "bt-print", false));
  12. 		items.add(new ListOfActionsItem("download", "#", "bt-download", false));
  13. 		items.add(new ListOfActionsItem("edit", "#", "bt-edit", false));
  14. 		items.add(new ListOfActionsItem("view", "#", "bt-view", false));
  15. 		items.add(new ListOfActionsItem("email", "#", "bt-email", false));
  16. 		return items;
  17. 	}
  18. }
  19. 
                                
  20. 
                                

Top


List of Components

Top

jQuery Feature
jQuery Interactive Feature
Tapestry Integration
Tapestry integration
AngularJS Feature
AngularJS Feature

Navigation

Forms

Tables

Blocks

Site Utilities

Editorial

eCommerce