Class DeleteButtonControl

  • All Implemented Interfaces:
    VariableResolver, IControl

    public class DeleteButtonControl
    extends ButtonControl
    Defines a delete button control. The delete button inherits all the button control properties and has default values for certain properties.

    Example use:
    
     <control:lum_deleteButton id="deleteButton" processActionId="delete"/>
     
    xml data available for xsl rendering:
    
     <control id="deleteButton" processActionId="delete" text="STR_DELETE" type="lum_deleteButton">
     	<onClick type="script">
     		<script>if(!confirm('Are you sure you want to delete the selected item(s)?')) return;</script>
     		<validators>
     			<validator controlId="adminList.tabulardata" type="selectedMany" /> 
     		</validators>
     	</onClick>
     	<onClick type="processAction">
     		<processActionId>delete</processActionId> 
     	</onClick>
     	<image>lumis/portal/client/images/Delete.gif</image> 
     	<rowAction bulkAction="true" listControlId="adminList.tabulardata" />
     	<data>
     		<name>Delete</name> 
     		<onclick><!-- onclick javascript for the button --></onclick> 
     	</data>
     </control>
     
    Since:
    4.0.0
    Version:
    $Revision: 22315 $ $Date: 2019-01-25 18:30:16 -0200 (Fri, 25 Jan 2019) $