Create
This section describes the BfmCreateComponent component.
Composition
The BfmCreateComponent is composed of the following components:
- BfmUploadComponent - Handles the file upload.
- BfmCreateFinancialRecordComponent - Component that handles the creation of a financial record.
- BfmHeaderTabsComponent - Tabs that allow the user to switch between the massive creation and the manual creation of records.
- BfmCreateSuccessComponent - Success component that is displayed after the record is created.
Usage
You can import the BfmCreateComponent directly in your route configuration.
import { BfmCreateComponent } from '@celerofinancas/ui-cash-flow';
const routes = [
{
path: 'create',
component: BfmCreateComponent,
},
];
But if you need more customization, you need to import it in your module and use it in your template.
create.component.ts
import { BfmCreateComponent } from '@celerofinancas/ui-cash-flow';
@Component({
standalone: true,
selector: 'create',
imports: [BfmCreateComponent],
templateUrl: './create.component.html',
})
export class CreateComponent {}
Then, in your template, you can use the component like this:
create.component.html
<bfm-create />
<!-- Your custom code here -->