1.1.27 • Published 8 months ago

@rbtechdev/angular-winbox v1.1.27

Weekly downloads
-
License
-
Repository
github
Last release
8 months ago

angular-winbox

A wrapper component for WinBox.js with the ability to mount Angular components.

Installation

//

Usage

The service return an instance of a Winbox, which wraps Winbox.js and the component's instance.

const winboxWrapper = this.winBoxService.openWinBox(
                {
                  title: "Winbox",
                  height: '90%',
                  width: '40%',
                  x: 'center',
                  y: 'center',
                  onclose: () => {
                    this.cdRef.detectChanges();
                    return false;
                  },
                },
                SampleComponent
              );
// It is possible to access to component's properties.
winboxWrapper.instance.value = 5;
winboxWrapper.winBox.close();

Methods and Properties

constructor(winBoxService : WinboxService) {}

// Open the last created WinBox.
this.winBoxService.showLastWinbox();

// Maximize a WinBox by id.
this.winBoxService.maximizeWinbox(id: string | number, state: boolean);

// Minimize a WinBox by id.
this.winBoxService.minimizeWinbox(id: string | number, state: boolean);

// Close all the created winBox.
this.winBoxService.closeAllWinBoxes();

// Boolean that indicates if there is at least one created Winbox.
const isThereAWinBox = this.wiBoxService.isThereAWinBox;
1.1.27

8 months ago

1.1.26

1 year ago

1.1.25

1 year ago

1.1.24

1 year ago

1.1.23

1 year ago

1.1.22

1 year ago

1.1.21

2 years ago

1.1.20

2 years ago

1.1.19

2 years ago

1.1.18

2 years ago

1.1.17

2 years ago

1.1.16

2 years ago

1.1.15

2 years ago

1.1.13

2 years ago

1.1.12

2 years ago

1.1.11

2 years ago

1.1.10

2 years ago

1.0.0

2 years ago