0.10.0 • Published 10 months ago

ngx-liburg v0.10.0

Weekly downloads
-
License
-
Repository
-
Last release
10 months ago

LibsWorkspace

This project was generated with Angular CLI version 14.0.6.

Development server

Material Shared

For using material table you follow the next step

  1. 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
}
  1. 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>
dataSource: your Type;
  public list = [{
    name: 'dasdasd',
    name1: 'dasdasd',
    age: 1,
    iu: 'dasdsdasd',
    iu1: 'dasdsdasd',
    iu41: 'dasdsdasd',
    iu1321: 'dasdsdasd',
    iu21: 'dasdsdasd',
    iu3: 'dasdsdasd',
    age1: 1,
    iu2: 'dasdsdasd',
    iu11: 'dasdsdasd',
    iu414: 'dasdsdasd',
    iu13214: 'dasdsdasd',
    iu251: 'dasdsdasd',
    iu33: 'dasdsdasd'
  }, ....]
this.dataSource = this.list.map(resp => {
      const model = <{ name: string, age: number }>resp
      return {
        actions: [{
          iconClass: 'fa_solid:stethoscope',
          classCss: 'driver__existing',
          method: () => {
          }
        }] as IActionMaterialColumn[],
        editable: false,
        model: {
          ...model
        }
      } as DataSourceMaterialTable<any>

    })
<div>
  <elix-table [dataSource]="dataSource">
    <elix-column-text
      field="name"
      name="TASDASD"
    >
    </elix-column-text>
    <elix-column-text
      field="age"
      name="TASDASD"
    >
    </elix-column-text>
    <elix-column-text
      field="name1"
      name="TASDASD"
    >
    </elix-column-text>
  
    .
    .
    . 
  </elix-table>
</div>

Footer

Flag to show FooterAmount on the table state.
Label footer to custom.
FooterColumn send what column you want to make reduce

Zebra mode

Flag zebraColor true or false. Boolean value at the table state.

and enjoy at this beautiful library

0.8.4

12 months ago

0.9.0

12 months ago

0.10.0

10 months ago

0.8.3

12 months ago

0.0.21

1 year ago

0.0.0-watch

1 year ago

0.1.0

1 year ago

0.3.0

1 year ago

0.1.2

1 year ago

0.2.0

1 year ago

0.8.1

1 year ago

0.5.4

1 year ago

0.8.0

1 year ago

0.6.2

1 year ago

0.5.3

1 year ago

0.8.2

1 year ago

0.5.5

1 year ago

0.5.0

1 year ago

0.4.1

1 year ago

0.2.3

1 year ago

0.4.0

1 year ago

0.2.2

1 year ago

0.1.3

1 year ago

0.7.0

1 year ago

0.6.1

1 year ago

0.5.2

1 year ago

0.6.0

1 year ago

0.5.1

1 year ago

0.2.4

1 year ago

0.1.5

1 year ago

0.0.20

1 year ago

0.0.18

1 year ago

0.0.19

1 year ago

0.0.10

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.13

2 years ago

0.0.14

2 years ago

0.0.9

2 years ago

0.0.16

2 years ago

0.0.8

2 years ago

0.0.17

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago