ngx-cabernet
v0.7.8
Published
<p align="center"> <br/><br/> <br/><br/> <img src="images\logos.png" width="160" border="0" alt="NGX-Cabernet" id="logo"> <br/><br/> <br/><br/> Angular Framework for easily CRUD forms development. Cabernet is a framework for to be used as a ba
Downloads
727
Readme
Convention over Configuration
This framework is designed for using this paradigm, Convention over Configuration. Each entity should have two essential properties: EntityID and EntityName. For example, entities like Customer should have properties like CustomerID and CustomerName, while entities like User should have properties like UserID and UserName. Additionally, for audit purposes, each entity should have four more properties: CreatedOn, CreatedBy, LastModifiedOn, and LastModifiedBy.
Entities Forms (Should be a ttitle )
There are two forms for each entity: Entity-Crud and Entity-List. Both forms inherit and share all methods and attributes, but they are used with different properties.
Entity-List (Should be a subttitle )
In this form, the primary property used is "recordList". The "searchRecordList()" method populates "recordList". It is executed when added to an onClick event in a Button or when loading the entity page if "fillRecordListOnInit" is set to true.
Entity-CRUD (Should be a subttitle )
In this form, the primary property is "record." When a record is selected in the Entity-List, the Entity-Crud component opens, and the "record" property is displayed in the HTML code.
Action (Should be a subsubtitle )
An essential property in the Entity-CRUD is the "action" attribute. It defines the record's action, such as viewing, editing, creating, etc. Using directives like [crud-non-required] and [crud-required], it determines whether a field can be edited or not based on these directives.