update
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import { registry } from "@web/core/registry";
|
||||
import { StatisticModel } from "./statistic_model";
|
||||
import { StatisticController } from "./statistic_controller";
|
||||
import { StatisticRenderer } from "./statistic_renderer";
|
||||
|
||||
export const statisticView = {
|
||||
type: "statistic",
|
||||
Controller: StatisticController,
|
||||
Renderer: StatisticRenderer,
|
||||
Model: StatisticModel,
|
||||
|
||||
props(genericProps, view) {
|
||||
console.log("Statistic View - this: ", this);
|
||||
console.log("Statistic View - genericProps: ", genericProps);
|
||||
console.log("Statistic View - view: ", view);
|
||||
|
||||
return {
|
||||
...genericProps,
|
||||
Model: view.Model,
|
||||
Renderer: view.Renderer
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
registry.category("views").add("statistic", statisticView);
|
||||
Reference in New Issue
Block a user