-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1017817
commit 02ece01
Showing
7 changed files
with
44 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
class LayoutResolver { | ||
Resolve(key) { | ||
switch (key) { | ||
case "NarikListUi": | ||
return { | ||
layout: "", | ||
layoutUrl: "./src/app/layouts/list-layout.html", | ||
}; | ||
case "NarikEditUi": | ||
return { | ||
layout: "", | ||
layoutUrl: "./src/app/layouts/edit-layout.html", | ||
}; | ||
case "widget": | ||
return { | ||
layout: "", | ||
layoutUrl: "./src/app/layouts/widget-layout.html", | ||
}; | ||
case "widget2": | ||
return { | ||
layout: "", | ||
layoutUrl: "./src/app/layouts/widget-layout2.html", | ||
}; | ||
|
||
default: | ||
break; | ||
} | ||
} | ||
} | ||
module.exports = LayoutResolver; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
24 changes: 12 additions & 12 deletions
24
src/app/templates/widget-template.html → src/app/layouts/widget-layout.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
<div class="card m-2"> | ||
<div class="card-body"> | ||
|
||
<div class="card-footer"> | ||
<div narik-section="widgetFooter"> | ||
<narik-button buttonClass='btn-outline-primary | ||
btn-rounded waves-effect' iconClass='fa-check' label='{{"prompt" | translate}}' (click)="prompt()"> | ||
</narik-button> | ||
</div> | ||
</div> | ||
|
||
|
||
<div narik-section="widgetTitle"> | ||
<h5 class="card-title">{{ title }}</h5> | ||
</div> | ||
|
||
<div narik-section="widgetContent"></div> | ||
|
||
|
||
|
||
<div class="card-footer"> | ||
<div narik-section="widgetFooter"> | ||
<narik-button | ||
buttonClass="btn-outline-primary | ||
btn-rounded waves-effect" | ||
iconClass="fa-check" | ||
label='{{"prompt" | translate}}' | ||
(click)="prompt()" | ||
> | ||
</narik-button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
File renamed without changes.