Skip to content

4ctarus/myrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Myrc

Set of components, directive and pipe for Angular

This project was generated with Angular CLI version 7.3.3.

Install

Once the package is installed, import MyrcLibModule into your application.

@NgModule({
  ...
  imports: [MyrcLibModule],
  ...
})
export class AppModule { }

You can also import a default theme.

Component

MyrcFormbuilder

transform an object to FormGroup and editable form,

Name Description
@Input(): FormGroup, @Output: FormGroup fg set your empty formgroup
@Input(): Form forms set your form options
<form [formGroup]="fg" (ngSubmit)="onSubmit()">
  <myrc-formbuilder [(fg)]="fg" 
    [forms]="forms"></myrc-formbuilder>
  <button type="submit"></button>
</form>

Directive

myrcEditable

Directive that enable edition of any html innertext balise

Name Description
@Input(): string, @Output: string editable default value
@Input(): string editableplaceholder value if no default value set
@Input(): string[] keysban key press event to disable
@Input options allowed value on edition
<div myrcEditable [(editable)]="test" 
  editableplaceholder="key" 
  [keysban]="bannedKey" 
  [options]="allowedValue"></div>

About

Set of components, directive and pipe for Angular

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors