This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Templates } from 'formiojs'; | |
| Templates.framework = 'bootstrap'; | |
| // Default DataGrid template from src/templates/bootstrap/datagrid/form.ejs | |
| // with changed header labels and added footer text for every component | |
| Templates.current.datagrid.form = ` | |
| <table class="table datagrid-table table-bordered | |
| {{ ctx.component.striped ? 'table-striped' : ''}} | |
| {{ ctx.component.hover ? 'table-hover' : ''}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Formio } from '@formio/angular'; | |
| const Base = (Formio as any).Components.components.component; | |
| const defaultEditForm = (Formio as any).Components.components.textfield.editForm; | |
| import _ from 'lodash'; | |
| export default class MyCustomComponent extends Base { | |
| /* Your component logic */ | |
| static editForm() { | |
| const {components} = defaultEditForm(); |