Resizable Popup Dialogs

The Popup control has an isResizable property. Set this to true to make the Popup resizable. Try resizing the Popup in the sample below.

import 'bootstrap.css'; import '@grapecity/wijmo.styles/wijmo.css'; import './styles.css'; // import * as input from '@grapecity/wijmo.input'; // document.readyState === 'complete' ? init() : window.onload = init; // function init() { // create forms let frmLogin = new input.Popup('#frmLogin', { isDraggable: true, isResizable: true }); // // show forms document.querySelector('#btnLogin').addEventListener('click', () => { frmLogin.show(true); }); } <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>GrapeCity Resizable Dialogs</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- SystemJS --> <script src="node_modules/systemjs/dist/system.src.js"></script> <script src="systemjs.config.js"></script> <script> System.import('./src/app'); </script> </head> <body> <div class="container-fluid"> <button id="btnLogin" class="btn btn-primary"> Log In </button> <!-- Log In form --> <form id="frmLogin"> <div class="wj-dialog-header"> Log in <button type="button" tabindex="-1" class="close wj-hide">&times;</button> </div> <div class="wj-dialog-body"> <label> Email: <input class="form-control" required type="email" /> </label> <br /> <label> Password: <input class="form-control" type="password" required pattern=".{4,}" title="Please enter 4 characters or more." /> </label> </div> <div class="wj-dialog-footer"> <button class="btn btn-primary" type="submit"> Log in </button> </div> </form> </div> </body> </html> .modal-body { min-width: 300px; } input:invalid { border-color: red; } body { margin-bottom: 24pt; } import 'bootstrap.css'; import '@grapecity/wijmo.styles/wijmo.css'; import './styles.css'; // import { Component, enableProdMode, NgModule } from '@angular/core'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { BrowserModule } from '@angular/platform-browser'; import { WjInputModule } from '@grapecity/wijmo.angular2.input'; // @Component({ selector: 'app-component', templateUrl: 'src/app.component.html' }) export class AppComponent { } // @NgModule({ imports: [WjInputModule, BrowserModule], declarations: [AppComponent], bootstrap: [AppComponent] }) export class AppModule { } // enableProdMode(); // Bootstrap application with hash style navigation and global services. platformBrowserDynamic().bootstrapModule(AppModule); <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>GrapeCity Resizable Dialogs</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Polyfills --> <script src="node_modules/core-js/client/shim.min.js"></script> <script src="node_modules/zone.js/dist/zone.min.js"></script> <!-- SystemJS --> <script src="node_modules/systemjs/dist/system.js"></script> <script src="systemjs.config.js"></script> <script> // workaround to load 'rxjs/operators' from the rxjs bundle System.import('rxjs').then(function (m) { System.set(SystemJS.resolveSync('rxjs/operators'), System.newModule(m.operators)); System.import('./src/app.component'); }); </script> </head> <body> <app-component></app-component> </body> </html> <div class="container-fluid"> <button class="btn btn-primary btn-space" (click)="frmLoginPopup.show(true)"> Log In </button> <!-- Log In form --> <wj-popup #frmLoginPopup [isDraggable]="true" [isResizable]="true"> <form> <div class="wj-dialog-header"> Log in <button type="button" tabindex="-1" class="close wj-hide">&times;</button> </div> <div class="wj-dialog-body"> <label> Email: <input class="form-control" required type="email" /> </label> <br /> <label> Password: <input class="form-control" type="password" required pattern=".{4,}" title="Please enter 4 characters or more." /> </label> </div> <div class="wj-dialog-footer"> <button class="btn btn-primary" type="submit"> Log in </button> </div> </form> </wj-popup> </div> .modal-body { min-width: 300px; } input:invalid { border-color: red; } body { margin-bottom: 24pt; } <template> <div class="container-fluid"> <button class="btn btn-primary btn-space" @click="frmLoginPopup.show(true)"> Log In </button> <!-- Log In form --> <wj-popup :isDraggable="true" :isResizable="true" :initialized="initPopup"> <form> <div class="wj-dialog-header"> Log in <button type="button" tabindex="-1" class="close wj-hide">&times;</button> </div> <div class="wj-dialog-body"> <label> Email: <input class="form-control" required type="email" /> </label> <br /> <label> Password: <input class="form-control" type="password" required pattern=".{4,}" title="Please enter 4 characters or more." /> </label> </div> <div class="wj-dialog-footer"> <button class="btn btn-primary" type="submit"> Log in </button> </div> </form> </wj-popup> </div> </template> <script> import 'bootstrap.css'; import '@grapecity/wijmo.styles/wijmo.css'; import Vue from 'vue'; import '@grapecity/wijmo.vue2.core'; import '@grapecity/wijmo.vue2.input'; let App = Vue.extend({ name: 'app', data: function(){ return { frmLoginPopup: null } }, methods: { initPopup: function(popup){ this.frmLoginPopup = popup; } } }) let vm = new Vue({ render: h => h(App) }).$mount('#app'); </script> <style> .modal-body { min-width: 300px; } input:invalid { border-color: red; } body { margin-bottom: 24pt; } </style> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>GrapeCity Resizable Dialogs</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- SystemJS --> <script src="node_modules/systemjs/dist/system.src.js"></script> <script src="systemjs.config.js"></script> <script> System.import('./src/app.vue'); </script> </head> <body> <div id="app"></div> </body> </html> import 'bootstrap.css'; import '@grapecity/wijmo.styles/wijmo.css'; import './app.css'; // import * as React from 'react'; import * as ReactDOM from 'react-dom'; // import * as wjInput from '@grapecity/wijmo.react.input'; // class App extends React.Component { constructor(props) { super(props); this.initLoginForm = (popup) => { this.setState({ frmLoginPopup: popup }); }; this.state = { frmLoginPopup: {} }; } render() { return <div className="container-fluid"> <button className="btn btn-primary btn-space" onClick={e => this.state.frmLoginPopup.show(true)}> Log In </button> <wjInput.Popup isDraggable={true} isResizable={true} initialized={this.initLoginForm}> <form> <div className="wj-dialog-header"> Log in <button type="button" className="close wj-hide">&times;</button> </div> <div className="modal-body"> <label> Email: <input className="form-control" required type="email"/> </label> <br /> <label> Password: <input className="form-control" type="password" required pattern=".{4,}" title="Please enter 4 characters or more."/> </label> <br /> </div> <div className="modal-footer"> <button className="btn btn-primary" type="submit"> Log in </button> </div> </form> </wjInput.Popup> </div>; } } ReactDOM.render(<App />, document.getElementById('app')); <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>GrapeCity Resizable Dialogs</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- SystemJS --> <script src="node_modules/systemjs/dist/system.src.js"></script> <script src="systemjs.config.js"></script> <script> System.import('./src/app'); </script> </head> <body> <div id="app"></div> </body> </html> .modal-body { min-width: 300px; } input:invalid { border-color: red; } body { margin-bottom: 24pt; }