0.0.19 • Published 3 years ago

angular-dynamic-template v0.0.19

Weekly downloads
54
License
-
Repository
-
Last release
3 years ago

DynamicTemplate

This library was generated with Angular CLI version 10.2.0.

Code scaffolding

Run ng generate component component-name --project dynamic-template to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project dynamic-template.

Note: Don't forget to add --project dynamic-template or else it will be added to the default project in your angular.json file.

Build

Run ng build dynamic-template to build the project. The build artifacts will be stored in the dist/ directory.

Publishing

After building your library with ng build dynamic-template, go to the dist folder cd dist/dynamic-template and run npm publish.

Running unit tests

Run ng test dynamic-template to execute the unit tests via Karma.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.

#example use

const settings = {
    firstComponent: 'some component',
    secondComponent: 'some component',
    thirdComponent: 'some component',
    onDrag: new EventEmitter(), // emit when drag state change
    css: {
      position: 'absolute',
      margin: ['px','0px','0px','0px'],
      top: 0,
      left: 0,
      right: 0,
      bottom: 0,
      height: 'auto'
    },
    icons: {
      expand: '',
      cog: '',
      syncAlt: '',
      save: '',
      retweet: '',
      columns: '',
    },
    "stateLabel": ''
  };

<lib-dynamic-template settings="settings">

each time drag started class disable-mobile-refresh injected to body element in order to prevent iframe events behavior:

body.disable-mobile-refresh { overscroll-behavior-y: contain; }

0.0.18

3 years ago

0.0.19

3 years ago

0.0.17

3 years ago

0.0.16

3 years ago

0.0.15

3 years ago

0.0.14

3 years ago

0.0.12

3 years ago

0.0.13

3 years ago

0.0.10

3 years ago

0.0.11

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.5

3 years ago

0.0.6

3 years ago

0.3.0

3 years ago

0.0.4

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago

0.0.1

3 years ago