Giter Club home page Giter Club logo

angular5html5table's Introduction

#readme

angular5html5table

Angular light weight Table. * Check the HowTo section below.

Features

  • Supports basic angular and html.
  • Supports multiple platforms
  • The value automatically updates intable as changes in your code.
  • Emits an event after every required click and change to your parent component code.
  • Nice devs behind it. ๐Ÿค“

* Check the Updates section below.

* Check the Hints section below.

Updates

  • Visibility of a column at run time using "visible":boolean property in object of headerRowsArray.
  • Use paginator to show some or more no of rows in the table.
  • Move Extreme Left option in filter to move a column to extreme left.
  • Move Extreme Right option in filter to move a column to extreme right.
  • Realign the table to its original move.
  • Remove columns dynamically at user end by clicking Hide column from the menu.
  • Readd columns shown in chips above the table.
  • Multiple type of filters to check contains, start from, end from and many more.

* Check the NewUpdates section below.

NewUpdates

  • Title property in column header and label on row.
  • Background color feature of a column.
  • Background color feature a header.
  • Background color feature of a cell.
  • Background color feature of a row.
  • Text color feature of a column.
  • Text color feature a header.
  • Text color feature of a cell.

FREEZE UPDATE

  • Freeze columns to the left allows you to freeze a column while scrolling others.

HowTo

Important

Must use enableProdMode() in main.ts of your project. Must import css for @angular/material in style.css

I promise that it's very easy to use:

install using npm i angular5html5table

* Check the Usage section below.

Usage

Call it from the html of the file in which you want to show the table , like

<angular-table [rowData]="rowData" [headerRowsArray]="headerRowsArray" [leftColumnType]="leftColumnType" [tableNameFromParent]="'Table_Name'" [defaultSelectedRow]="'selectRowNoByDefault'" [idOfTable]="'tableId'" (onSelectedRows)="onRowSelection($event.value)" (onColumnClicked)="onColumnClicked($event.value)" (onRowValueChange)="onValueChanged($event.value)" >

For further help

* Check the Help section below.

Hints

  • Each headerRowsArray's Object must have a columnName field which is displayed on header.
  • Each headerRowsArray's Object must have a modelId field which will be helping in binding with tbody element.
  • Each headerRowsArray's Object must have a width field which will set the default width of the table header column.
  • By default every field is of label type.
  • To enable sorting feature use sort:true in headerRowsArray's Object.
  • Can have a date field using type:"date" and editable:"true" in headerRowsArray's Object.
  • Can have a time field using type:"time" and editable:"true" in headerRowsArray's Object.
  • Can have a number field using type:"number" and editable:"true" in headerRowsArray's Object.
  • Can have a select type field using type:"select" and editable:"true" and values:"JSON Array with a displayProperty which is to be displayed in select options" and displayId:"displayProperty" in headerRowsArray's Object.
  • Can have a checkbox field using type:"checkbox" and editable:"true" in headerRowsArray's Object.
  • To set minimum date of Today use setMinDate:true in headerRowsArray's Object.
  • To set maximum date of Today use setMaxDate:true in headerRowsArray's Object.

Demo

Previews needs to be opened in new standalone windows.

Repositories

Help

If you need help you can contact to [email protected] with a subject "HELP REGARDING TABLE" in the mail.

angular5html5table's People

Contributors

iashish480 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.