Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit cbd7ba3

Browse files
author
kadir.avci
committed
Added new functionalities and js libraries
1 parent fedb71f commit cbd7ba3

File tree

6 files changed

+19
-3
lines changed

6 files changed

+19
-3
lines changed
56.3 KB
Binary file not shown.

‎VueJsTutorial/Views/ProductActivity/Form.cshtml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@
3333
<div class="col-6">
3434
<otextboxfor v-model-name="result.productActivityForJson.InvoiceNumber" asp-for="@Model.ProductActivityForJson.InvoiceNumber" input-css="form-control col-8" has-parent="true" parent-css="form-group row" has-label="true" label-css="control-label col-4" required-css="text-red"></otextboxfor>
3535
</div>
36+
<div class="col-6">
37+
<div class="form-group row">
38+
<label class="control-label col-4">Date</label>
39+
<input type="text" class="form-control date-control col-8" />
40+
</div>
41+
</div>
3642
</div>
3743
<br />
3844
<button v-on:click.prevent="submit" class="btn btn-primary pull-right">Add Product Detail</button>

‎VueJsTutorial/Views/Shared/_Layout.cshtml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap&subset=latin-ext" rel="stylesheet"/>
1818
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"/>
1919
<link href="~/lib/noty/noty.min.css" rel="stylesheet"/>
20+
<link href="~/lib/flatpickr/flatpickr.min.css" rel="stylesheet"/>
21+
<link href="~/lib/flatpickr/ie.css" rel="stylesheet"/>
2022
<link rel="stylesheet" href="~/css/site.css"/>
2123
</head>
2224
<body>
@@ -78,6 +80,7 @@
7880
</script>*@
7981
</environment>
8082

83+
<script src="~/lib/flatpickr/flatpickr.min.js"></script>
8184
<script src="~/lib/noty/noty.min.js"></script>
8285
<script src="~/js/vuehelpers.js" asp-append-version="true"></script>
8386
<script src="~/js/events.js" asp-append-version="true"></script>

‎VueJsTutorial/wwwroot/js/events.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
window.onload = function () {
22
pageInit();
3-
myNoty("Hi there!", "success");
3+
showNoty("Hi there!", "success");
44
}

‎VueJsTutorial/wwwroot/js/helper.js‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,16 @@ Array.prototype.insert = function (value) {
1212
}
1313
}
1414

15-
function myNoty(message, type) {
15+
// #region noty
16+
17+
function showNoty(message, type) {
1618
var n = new Noty({
1719
text: message, type: type,
1820
layout: "bottomRight",
19-
container: ".asdasd"
21+
theme: "light",
22+
timeout: 2000,
23+
progressBar: true
2024
}).show();
2125
}
26+
27+
// #endregion

‎VueJsTutorial/wwwroot/js/site.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,5 @@ function pageInit() {
6666
selectedSubRows.length = 0;
6767
selected = 0;
6868
selectedObj = {};
69+
flatpickr(".date-control");
6970
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /