Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
);
}
}
@PortofinoComponent({ name: 'customcrud' })
export class CustomCrud extends CrudComponent {
initialize(): void {
console.log("Custom crud");
super.initialize();
this.configuration.title = 'Custom CRUD';
this.searchComponent = CustomSearch;
this.searchComponentContext = { customInput: "works!" };
}
@Button({
list: 'search-results', text: 'Custom button', icon: 'save', color: "warn", enabledIf: CustomCrud.buttonEnabled
})
hello() {
console.log("Custom button", this.configuration);
}
static buttonEnabled() {
return true;
}
}
export class CustomSearch extends SearchComponent {
@Input()
customInput;
ngOnInit(): void {
console.log("Custom search with input", this.customInput);