created CustomFilter model and api

This commit is contained in:
Chris Scoggins
2022-01-21 15:50:26 -06:00
parent 492febe626
commit 890e9e7242
14 changed files with 637 additions and 49 deletions

View File

@ -470,6 +470,33 @@ export class Models {
},
}
static CUSTOM_FILTER = {
name: i18n.t("Custom Filter"),
apiName: "CustomFilter",
create: {
params: [["name", "search", "shared"]],
form: {
name: {
form_field: true,
type: "text",
field: "name",
label: i18n.t("Name"),
placeholder: "",
},
shared: {
form_field: true,
type: "lookup",
field: "shared",
list: "USER",
list_label: "username",
label: i18n.t("shared_with"),
multiple: true,
},
},
},
}
static USER_NAME = {
name: "User",
apiName: "User",