src/UI/HTML/FormElements.php
public static function ResetButton( $label, $class = NULL, $confirm = NULL, $disabled = NULL, $title = NULL )
	{
		$attributes	= array(
			'type'		=> "reset",
			'class'		=> $class,
			'onclick'	=> $confirm		? "return confirm('".$confirm."');" : NULL,
			'title'		=> $title,
		);
		if( $disabled )
			self::addReadonlyAttributes( $attributes, $disabled );
		return UI_HTML_Tag::create( "button", $label, $attributes );
	}
public static function ResetButton( $label, $class = NULL, $confirm = NULL, $disabled = NULL, $title = NULL )
	{
		$attributes	= array(
			'type'		=> "reset",
			'class'		=> $class,
			'onclick'	=> $confirm		? "return confirm('".$confirm."');" : NULL,
			'title'		=> $title,
		);
		if( $disabled )
			self::addReadonlyAttributes( $attributes, $disabled );
		return UI_HTML_Tag::create( "button", $label, $attributes );
	}
public static function ResetButton ( $ label , $ class = NULL , $ confirm = NULL , $ disabled = NULL , $ title = NULL ) { $ attributes = array ( 'type' => "reset" , 'class' => $ class , 'onclick' => $ confirm ? "return confirm('" . $ confirm . "');" : NULL , 'title' => $ title , ) ; if ( $ disabled ) self :: addReadonlyAttributes ( $ attributes , $ disabled ) ; return UI_HTML_Tag :: create ( "button" , $ label , $ attributes ) ; }
Builds HTML Code for a Button to reset the current Form.
@access		public
@static
@param		string		$label	 		Button Label
@param		string		$class			CSS Class
@param		string		$confirm 		Confirmation Message
@param		mixed		$disabled		Button is not pressable, JavaScript Alert if String is given
@param		string		$title			Title text on mouse hover
@return		string
Builds HTML Code for a Button to reset the current Form .