0.1.2 • Published 5 years ago

material-custom-editor v0.1.2

Weekly downloads
47
License
NO
Repository
github
Last release
5 years ago

MaterialExpresssionEditor

Library for editing mathematic expression using Angular Material.
Feel free to improve this library.

1 Installation & Setup

npm install material-custom-editor
Import CustomEditorLibraryModule in app.module.ts (under @NgModule at imports: [...])

2 Usage

HTML tag: <lib-material-custom-editor>

@Input:
- expression: string with an existing expression (optional) 
- variables: list of objects to be added to expression with two string properties: name and value (ex:{ name: 'var1', value: '1' }) 
- customFunctions: list of objects to be added to exprssion with two string properties: name and value (ex: { name: 'func', value: '2*var1' } ) 
- fixedFunctions: list of objects to be added to exprssion with two string properties: name and value (ex: { name: 'Max', value: 'Max( , )' } ) 
- language: string with language code in compliance with ISO Language Code Table.

@Output: 
- cancelEvent: event triggerd at cancellation. 
- submitEvent: event triggerd at submit with the expression string submitted.

4 Repository

https://github.com/tarceaalex/MaterialExpressionEditor    

3 License

NO
0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago