Skip to content

Commit

Permalink
config(EJ2-28895): Volume 2 released
Browse files Browse the repository at this point in the history
  • Loading branch information
sridurgha committed Jul 5, 2019
1 parent 0ef9263 commit 6052957
Show file tree
Hide file tree
Showing 488 changed files with 52,736 additions and 5,573 deletions.
33 changes: 33 additions & 0 deletions Controllers/AutoComplete/AutoCompleteForController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using System.ComponentModel.DataAnnotations;

namespace EJ2CoreSampleBrowser.Controllers
{
public class AutoCompleteValue
{
[Required(ErrorMessage = "Please enter a value")]
public string val { get; set; }
public string[] data { get; set; }
}
public partial class AutoCompleteController : Controller
{
public string[] datasource = new string[] { "American Football", "Badminton", "Basketball", "Cricket", "Football", "Golf", "Hockey", "Rugby", "Snooker", "Tennis" };
public IActionResult AutoCompleteFor()
{
AutoCompleteValue model = new AutoCompleteValue();
model.data = datasource;
return View(model);
}
[HttpPost]
public IActionResult AutoCompleteFor(AutoCompleteValue model)
{
model.data = datasource;
model.val = model.val;
return View(model);
}
}
}
41 changes: 41 additions & 0 deletions Controllers/Barcode/Ean8Controller.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;


namespace EJ2CoreSampleBrowser.Controllers.Barcode
{
public partial class BarcodeController : Controller
{
public IActionResult Ean8()
{
List<ExpandOptions> position = new List<ExpandOptions>();
position.Add(new ExpandOptions() { text = "Bottom", value = "bottom" });
position.Add(new ExpandOptions() { text = "Top", value = "top" });

ViewBag.position = position;
ViewBag.expandValue = "Bottom";
List<alignment> align = new List<alignment>();
align.Add(new alignment() { text = "Left", value = "left" });
align.Add(new alignment() { text = "Right", value = "right" });
align.Add(new alignment() { text = "Center", value = "center" });

ViewBag.align = align;
ViewBag.alignmentValue = "Center";
return View();
}

}
public class ExpandOptions
{
public string text;
public string value;
}
public class alignment
{
public string text;
public string value;
}
}
31 changes: 31 additions & 0 deletions Controllers/Barcode/codabarController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;


namespace EJ2CoreSampleBrowser.Controllers.Barcode
{
public partial class BarcodeController : Controller
{
public IActionResult codabar()
{
List<ExpandOptions> position = new List<ExpandOptions>();
position.Add(new ExpandOptions() { text = "Bottom", value = "bottom" });
position.Add(new ExpandOptions() { text = "Top", value = "top" });

ViewBag.position = position;
ViewBag.expandValue = "Bottom";
List<alignment> align = new List<alignment>();
align.Add(new alignment() { text = "Left", value = "left" });
align.Add(new alignment() { text = "Right", value = "right" });
align.Add(new alignment() { text = "Center", value = "center" });

ViewBag.align = align;
ViewBag.alignmentValue = "Center";
return View();
}

}
}
31 changes: 31 additions & 0 deletions Controllers/Barcode/code128AController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;


namespace EJ2CoreSampleBrowser.Controllers.Barcode
{
public partial class BarcodeController : Controller
{
public IActionResult code128A()
{
List<ExpandOptions> position = new List<ExpandOptions>();
position.Add(new ExpandOptions() { text = "Bottom", value = "bottom" });
position.Add(new ExpandOptions() { text = "Top", value = "top" });

ViewBag.position = position;
ViewBag.expandValue = "Bottom";
List<alignment> align = new List<alignment>();
align.Add(new alignment() { text = "Left", value = "left" });
align.Add(new alignment() { text = "Right", value = "right" });
align.Add(new alignment() { text = "Center", value = "center" });

ViewBag.align = align;
ViewBag.alignmentValue = "Center";
return View();
}

}
}
31 changes: 31 additions & 0 deletions Controllers/Barcode/code128BController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;


namespace EJ2CoreSampleBrowser.Controllers.Barcode
{
public partial class BarcodeController : Controller
{
public IActionResult code128B()
{
List<ExpandOptions> position = new List<ExpandOptions>();
position.Add(new ExpandOptions() { text = "Bottom", value = "bottom" });
position.Add(new ExpandOptions() { text = "Top", value = "top" });

ViewBag.position = position;
ViewBag.expandValue = "Bottom";
List<alignment> align = new List<alignment>();
align.Add(new alignment() { text = "Left", value = "left" });
align.Add(new alignment() { text = "Right", value = "right" });
align.Add(new alignment() { text = "Center", value = "center" });

ViewBag.align = align;
ViewBag.alignmentValue = "Center";
return View();
}

}
}
31 changes: 31 additions & 0 deletions Controllers/Barcode/code128CController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;


namespace EJ2CoreSampleBrowser.Controllers.Barcode
{
public partial class BarcodeController : Controller
{
public IActionResult code128C()
{
List<ExpandOptions> position = new List<ExpandOptions>();
position.Add(new ExpandOptions() { text = "Bottom", value = "bottom" });
position.Add(new ExpandOptions() { text = "Top", value = "top" });

ViewBag.position = position;
ViewBag.expandValue = "Bottom";
List<alignment> align = new List<alignment>();
align.Add(new alignment() { text = "Left", value = "left" });
align.Add(new alignment() { text = "Right", value = "right" });
align.Add(new alignment() { text = "Center", value = "center" });

ViewBag.align = align;
ViewBag.alignmentValue = "Center";
return View();
}

}
}
32 changes: 32 additions & 0 deletions Controllers/Barcode/code128Controller.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;


namespace EJ2CoreSampleBrowser.Controllers.Barcode
{
public partial class BarcodeController : Controller
{
public IActionResult code128()
{
List<ExpandOptions> position = new List<ExpandOptions>();
position.Add(new ExpandOptions() { text = "Bottom", value = "bottom" });
position.Add(new ExpandOptions() { text = "Top", value = "top" });

ViewBag.position = position;
ViewBag.expandValue = "Bottom";
List<alignment> align = new List<alignment>();
align.Add(new alignment() { text = "Left", value = "left" });
align.Add(new alignment() { text = "Right", value = "right" });
align.Add(new alignment() { text = "Center", value = "center" });

ViewBag.align = align;
ViewBag.alignmentValue = "Center";
return View();
}

}

}
31 changes: 31 additions & 0 deletions Controllers/Barcode/code32Controller.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;


namespace EJ2CoreSampleBrowser.Controllers.Barcode
{
public partial class BarcodeController : Controller
{
public IActionResult code32()
{
List<ExpandOptions> position = new List<ExpandOptions>();
position.Add(new ExpandOptions() { text = "Bottom", value = "bottom" });
position.Add(new ExpandOptions() { text = "Top", value = "top" });

ViewBag.position = position;
ViewBag.expandValue = "Bottom";
List<alignment> align = new List<alignment>();
align.Add(new alignment() { text = "Left", value = "left" });
align.Add(new alignment() { text = "Right", value = "right" });
align.Add(new alignment() { text = "Center", value = "center" });

ViewBag.align = align;
ViewBag.alignmentValue = "Center";
return View();
}

}
}
31 changes: 31 additions & 0 deletions Controllers/Barcode/code39Controller.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;


namespace EJ2CoreSampleBrowser.Controllers.Barcode
{
public partial class BarcodeController : Controller
{
public IActionResult code39()
{
List<ExpandOptions> position = new List<ExpandOptions>();
position.Add(new ExpandOptions() { text = "Bottom", value = "bottom" });
position.Add(new ExpandOptions() { text = "Top", value = "top" });

ViewBag.position = position;
ViewBag.expandValue = "Bottom";
List<alignment> align = new List<alignment>();
align.Add(new alignment() { text = "Left", value = "left" });
align.Add(new alignment() { text = "Right", value = "right" });
align.Add(new alignment() { text = "Center", value = "center" });

ViewBag.align = align;
ViewBag.alignmentValue = "Center";
return View();
}

}
}
31 changes: 31 additions & 0 deletions Controllers/Barcode/code39ExtdController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;


namespace EJ2CoreSampleBrowser.Controllers.Barcode
{
public partial class BarcodeController : Controller
{
public IActionResult code39Extd()
{
List<ExpandOptions> position = new List<ExpandOptions>();
position.Add(new ExpandOptions() { text = "Bottom", value = "bottom" });
position.Add(new ExpandOptions() { text = "Top", value = "top" });

ViewBag.position = position;
ViewBag.expandValue = "Bottom";
List<alignment> align = new List<alignment>();
align.Add(new alignment() { text = "Left", value = "left" });
align.Add(new alignment() { text = "Right", value = "right" });
align.Add(new alignment() { text = "Center", value = "center" });

ViewBag.align = align;
ViewBag.alignmentValue = "Center";
return View();
}

}
}
31 changes: 31 additions & 0 deletions Controllers/Barcode/code93Controller.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;


namespace EJ2CoreSampleBrowser.Controllers.Barcode
{
public partial class BarcodeController : Controller
{
public IActionResult code93()
{
List<ExpandOptions> position = new List<ExpandOptions>();
position.Add(new ExpandOptions() { text = "Bottom", value = "bottom" });
position.Add(new ExpandOptions() { text = "Top", value = "top" });

ViewBag.position = position;
ViewBag.expandValue = "Bottom";
List<alignment> align = new List<alignment>();
align.Add(new alignment() { text = "Left", value = "left" });
align.Add(new alignment() { text = "Right", value = "right" });
align.Add(new alignment() { text = "Center", value = "center" });

ViewBag.align = align;
ViewBag.alignmentValue = "Center";
return View();
}

}
}
Loading

0 comments on commit 6052957

Please sign in to comment.