@sohamerp/simple-grid
v1.1.2
Published
It is reusable table grid for angular project
Maintainers
Readme
SOHAM SIMPLE GRID
This library required @angular/core@18 @angular/cli@18 or Upper version.
Config
- HeaderConfig
- FooterConfig
- TableConfig
HeaderConfig
- It is used when you want to open simple grid as popup component.
- IsPopup - Keep is false if you are using simple grid as inline component. (by default it will true.)
- BGColor - To change Background color of Card Header.
- TextColor - To change Text color of Card Header.
- Title - Heading of Component
- AdditionalTitle - It is for Additional Text which will Display on Right side.
- showCloseButton - Show/Hide close button in Header.
FooterConfig
- It is used when you want to open simple grid as popup component.
- OKButtonText - Text for OK Button. Keep it blank if you did not required OK Button.
_blankwill display button with icon only. - OKButtonClass - Any classes required for OK Button. (by default:
btn-primary btn-xs btn-round-corner) - OKButtonIcon - Font-Awesome Icon for OK Button. (by default:
fa-check) - SubmitButtonText - Text for Submit Button. Keep it blank if you did not required Submit Button.
_blankwill display button with icon only. - SubmitButtonClass - Any classes required for Submit Button. (by default:
btn-success btn-xs btn-round-corner) - SubmitButtonIcon - Font-Awesome Icon for Submit Button. (by default:
fa-save)
- OKButtonText - Text for OK Button. Keep it blank if you did not required OK Button.
- OK Button will always return
false. - Submit Button will always return
true.
TableConfig
- HeaderBGColor - To change Background color of Table Header.
- HeaderTextColor - To change Text color of Table Header.
Table Fields Parameters
- FieldName - Object name of Field.
- DisplayName - Display Name for Field in Table Header.
- FieldType - Type of Field Like:
varchar,numeric,number,date,time,datetime,boolean - FieldSize - Width of Field in (%)
- IsSearchField - Keep it true if you want to add it in search functionality.
- IsVisible - Keep it false if you want to Hide Field from Table.
