Gcobani Mkontwana

Gcobani Mkontwana

  • 962
  • 816
  • 402

How to create a modal form in blazor sever?

Oct 21 2024 1:32 PM

Hi Team

I am using VS 2022 and have .net sdk 8 want to create modal form will be triggered when button is clicked. Are there any articles i can relate how to do this step by step? So can follow it, maybe on my current app i might miss some steps or else js files that are need for modal to show mine its not pop up when i clicked the button.

 

// Blazor requirements

The application
should include the following:
? a listing of operations with an option to remove an operation
? a modal form to add a new an operation to the list of operations
? a modal form to add a new device to an operation
? a pleasant user interface
? razor components
The application does not need to cater for any form of persistence.

class Operation {
	
	public int OperationID {get;set;}
	public string Name {get;set;}
	public int OrderInWhichToPerform {get;set;}
	public byte[] ImageData {get;set;}
	public Device Device {get;set;}
	
}

public Device {
	public int DeviceID {get;set;}
	public string Name {get;set;}
	public DeviceType {get;set;}
}


enum DeviceType {
	
	BarcodeScanner,
	Printer,
	Camera,
	SocketTray
	
	
}

 


Answers (1)