This project was generated with Angular CLI version 12.2.2.
Run npm ci
Run ng serve
for a dev server. Navigate to http://localhost:4201/
. The app will automatically reload if you change
any of the source files.
Run ng generate component component-name
to generate a new component. You can also
use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory.
Run ng test
to execute the unit tests via Karma.
npm run storybook
For using material table you follow the next step
- at ngOnInit you need to put the initialize table, it should receive an array of objects like this:
datasource={
actions:
{
iconClass: "class for icon",
classCss: " class what you need to maipulate in DOM",
method: " a function "
},
editable: "If you want the table be editable: true/false",
data for table { ES 6 } ...dataTable
}
- In html template you need to declare
<elix-table [dataSource] ="data at you initialized in ngOnInit">
<elix-column-text className="what class css you want for this column"
[iconClass]="Optional"
field="column from table"
name="what name you want to do"> ...
<elix-column-area-text require !!! field name > ...
</elix-table>
Add all file from bootstrap such as style
I added some property new such as
which we don't need it anymore to initialization evry property
With the HostBinding we can access either one element. e.g @HostBinding('style.backgroundColor') backgroundColor: string = 'color' (must to be initialized this parameter)
npm e2e