First commit
This commit is contained in:
29
application/demo/list/header/news.list.header.actions.js
Normal file
29
application/demo/list/header/news.list.header.actions.js
Normal file
@@ -0,0 +1,29 @@
|
||||
|
||||
import groups from '/user/group/user.group.permission.js';
|
||||
|
||||
import gridViewColumn from '/elements/gridView/gridView.header.row.column.js';
|
||||
|
||||
|
||||
export default class newsListHeaderActions extends gridViewColumn {
|
||||
|
||||
text = "Actions";
|
||||
|
||||
enableDELETE() {
|
||||
|
||||
this.show();
|
||||
|
||||
}
|
||||
|
||||
disableDELETE() {
|
||||
|
||||
this.hide();
|
||||
|
||||
}
|
||||
|
||||
permission() {
|
||||
|
||||
this.allow( groups.admin, "DELETE" );
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
9
application/demo/list/header/news.list.header.body.js
Normal file
9
application/demo/list/header/news.list.header.body.js
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
|
||||
import gridViewColumn from '/elements/gridView/gridView.header.row.column.js';
|
||||
|
||||
export default class newsListHeaderBody extends gridViewColumn{
|
||||
|
||||
text = "Message";
|
||||
|
||||
}
|
||||
26
application/demo/list/header/news.list.header.js
Normal file
26
application/demo/list/header/news.list.header.js
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
|
||||
import news from '../../news.js';
|
||||
|
||||
import body from './news.list.header.body.js';
|
||||
|
||||
import title from './news.list.header.title.js';
|
||||
|
||||
import price from './news.list.header.price.js';
|
||||
|
||||
import actions from './news.list.header.actions.js';
|
||||
|
||||
import gridViewRow from '/elements/gridView/gridView.header.row.js';
|
||||
|
||||
|
||||
export default class newsListHeader extends news, gridViewRow {
|
||||
|
||||
body = new body();
|
||||
|
||||
title = new title();
|
||||
|
||||
price = new price();
|
||||
|
||||
actions = new actions();
|
||||
|
||||
}
|
||||
10
application/demo/list/header/news.list.header.price.js
Normal file
10
application/demo/list/header/news.list.header.price.js
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
|
||||
import gridViewColumn from '/elements/gridView/gridView.header.row.column.js';
|
||||
|
||||
|
||||
export default class newsListHeaderPrice extends gridViewColumn{
|
||||
|
||||
text = "Price";
|
||||
|
||||
}
|
||||
12
application/demo/list/header/news.list.header.title.js
Normal file
12
application/demo/list/header/news.list.header.title.js
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
|
||||
import newsTitle from '../../news.title.js';
|
||||
|
||||
import gridViewColumn from '/elements/gridView/gridView.header.row.column.js';
|
||||
|
||||
|
||||
export default class newsListHeaderTitle extends gridViewColumn{
|
||||
|
||||
text = "Title";
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user